Skip to content

Command: Support posix_spawn() on FreeBSD/OSX/GNU Linux #48624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 23, 2018
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
posix_spawn() always returns its error rather than setting errno.
  • Loading branch information
bdrewery committed Mar 1, 2018
commit a9ea876960a06f3ae00049515bf9ef706cca806b
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/process/process_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl Command {
if ret == 0 {
Ok(Some(p))
} else {
Err(io::Error::last_os_error())
Err(io::Error::from_raw_os_error(ret))
}
}
}
Expand Down