Bumblebee-Project/bumblebeed — Issue #12: Exit code of a forked and executed process is not preserved
Author: Lekensteyn
Created: 2011-12-29 21:19:35+00:00
State: open

The functions for executing a process do not keep the exit code of a process. Example for optirun:

optirun sh -c 'echo 33;exit 22'; echo $?

Expected value:

33
22
Actual value:

33
0
or:

[ERROR]Could not connect to /var/run/bumblebee.socket! Error: No such file or directory
[ERROR]Could not connect to bumblebee daemon - is it running?
33
1
If `--failsafe` was given and the server was not available, the result is correct.