Qubes component: core-agent-linux
Go to file
Marek Marczykowski-Górecki 7592e913c5
qrexec: fix reporting exit code in qrexec-client-vm
1. If local process is started, report its exit code, instaed of remote
one. To get remote exit code, simply start qrexec-client-vm without
third argument (and connect its stdin/stdout with the other process some
other way).

2. Report process terminated by signal.
Don't pretend that process terminated by signal finished successfuly.
Copy shell behaviour of reporting it as 128+signum.

3. Do not wait() for any child process, just the one we expect. In case
of qrexec-client-vm the child process is started differently and
wait()ing on it inside main loop would break its exit code reporting.

Fixes QubesOS/qubes-issues#2861

(cherry picked from commit ea0cd0fdc3)
2017-09-24 17:22:26 +02:00
archlinux archlinux: add missing qubes-rpc dependencies 2017-01-29 15:37:15 +01:00
autostart-dropins Merge branch 'autostart-dropins' 2015-09-02 01:16:19 +02:00
debian Enable build for Zesty 2017-05-23 23:59:41 +01:00
doc qrexec: fix reporting exit code in qrexec-client-vm 2017-09-24 17:22:26 +02:00
init dispvm: don't use perl to decode base64-encoded script 2017-05-14 23:29:52 +02:00
misc Update Xen bug count in sudoers comment 2016-12-04 16:29:01 -08:00
network Merge remote-tracking branch 'qubesos/pr/45' 2017-04-01 11:58:13 +02:00
patches.debian Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
pkgs archlinux: created build scripts 2013-04-17 01:22:32 +02:00
qrexec qrexec: fix reporting exit code in qrexec-client-vm 2017-09-24 17:22:26 +02:00
qubes-rpc Make all scripts in qubes-rpc executable 2017-09-24 17:12:14 +02:00
rpm_spec Add qrexec-client-vm man page 2017-09-24 17:22:25 +02:00
vm-init.d Clean up early initialization and setup of /rw 2016-10-23 20:19:51 +00:00
vm-systemd systemd: fix race condition between qubes-db and qubes-early-vm-config 2017-05-14 23:13:26 +02:00
.gitignore gitignore: fix binary packages declaration 2014-07-27 06:11:14 +02:00
.travis.yml travis: drop debootstrap workaround 2016-12-04 21:28:13 +01:00
debian-quilt debian: Refactor Debian quilt packaging for xen 2015-02-11 08:02:55 -05:00
LICENSE Added LICENSE 2010-04-05 21:21:27 +02:00
Makefile Make all scripts in qubes-rpc executable 2017-09-24 17:12:14 +02:00
Makefile.builder Enable build for Zesty 2017-05-23 23:59:41 +01:00
series-debian-vm.conf Stop anacron from starting in Debian using existing constraint on cron 2017-02-05 23:36:27 +00:00
version version 3.2.18 2017-05-16 00:54:18 +02:00