nix icon indicating copy to clipboard operation
nix copied to clipboard

Fix incorrect posix_spawn* error checking

Open kosayoda opened this issue 1 year ago • 1 comments
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

kosayoda avatar Sep 23 '24 14:09 kosayoda