]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-login-shell: saner exit value
authorEric Blake <eblake@redhat.com>
Tue, 24 Dec 2013 04:07:01 +0000 (21:07 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 3 Mar 2014 19:40:32 +0000 (12:40 -0700)
commit730fc9622b295b1dc37f620fe8a5c7391ee9a47b
tree15031d97eab81e3aadd8bd8764a54781ca645c2c
parent4594a33b4bb480237cf76720275fc36fc6e6d1f1
virt-login-shell: saner exit value

virt-login-shell was exiting with status 0, regardless of what the
wrapped shell returned.  This is unkind to users; we should behave
more like env(1), nice(1), su(1), and other wrapper programs, by
preserving the invoked application's status (which includes the
distinction between death due to signal vs. normal death).

* tools/virt-login-shell.c (main): Pass through child exit status.
* tools/virt-login-shell.pod: Document exit status.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virt-login-shell.c
tools/virt-login-shell.pod