diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-01-31 21:16:43 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-01-31 22:48:45 +0100 |
commit | bbea91df4dbe363be050bbacb4f94d8fe9245a25 (patch) | |
tree | b2f35db7cc110edbab0464c2745afbff14023d34 /src | |
parent | 8be5df459a676555573e81b168589c54c4f5ba45 (diff) | |
download | rebel-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.rs | 2 |
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); |