summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-01-31 21:16:43 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-01-31 22:48:45 +0100
commitbbea91df4dbe363be050bbacb4f94d8fe9245a25 (patch)
treeb2f35db7cc110edbab0464c2745afbff14023d34 /src
parent8be5df459a676555573e81b168589c54c4f5ba45 (diff)
downloadrebel-bbea91df4dbe363be050bbacb4f94d8fe9245a25.tar
rebel-bbea91df4dbe363be050bbacb4f94d8fe9245a25.zip
prepared_command: do not exit with status 0 after cancel
Diffstat (limited to 'src')
-rw-r--r--src/prepared_command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prepared_command.rs b/src/prepared_command.rs
index 39b22ea..896d0b7 100644
--- a/src/prepared_command.rs
+++ b/src/prepared_command.rs
@@ -69,7 +69,7 @@ impl PreparedCommandBuilder {
let mut buf = [0u8; 1];
if libc::read(piper, buf.as_mut_ptr() as *mut c_void, buf.len()) != 1 {
// PreparedCommand was dropped, or controlling process exited
- libc::_exit(0);
+ libc::_exit(126);
}
libc::execvp(exe_p, argv_p);