nix
nix copied to clipboard
Fix incorrect posix_spawn* error checking
trafficstars
The posix_spawn functions do not use -1 as the sentinel for errors,
rather 0 is return on success and every other return value is an
error.
Adds a test case to test posix_spawn failure.
Checklist:
- [X] I have read
CONTRIBUTING.md - [X] I have written necessary tests and rustdoc comments