-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use interprocess pipe to signal exec error in forked process
Implements canonical fork/ exec error signaling process that uses a pipe configure to close on `exec` sys. call to notify the parent process if an error occurs in the child and it is unable to `exec` the desired executable file - Implement Pipe abstraction - Add `read_bytes` capability to `FileDecscriptor` - Add file descriptor controls function to Libc. bindings - Fix previously broken test for rasing on exec errors Refs: - https://cr.yp.to/docs/selfpipe.html Signed-off-by: Hristo I. Gueorguiev <53634432+izo0x90@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
168 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters