diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/prepared_command.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/prepared_command.rs b/src/prepared_command.rs index 896d0b7..8297095 100644 --- a/src/prepared_command.rs +++ b/src/prepared_command.rs @@ -63,7 +63,9 @@ impl PreparedCommandBuilder { // Child process - only async-signal-safe calls allowed - libc::close(pipew); + if libc::close(pipew) != 0 { + libc::_exit(126); + } // Wait for run trigger let mut buf = [0u8; 1]; |