Skip to content

Commit

Permalink
posix_spawn() always returns its error rather than setting errno.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrewery committed Mar 1, 2018
1 parent e6efd0d commit a9ea876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/process/process_unix.rs
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

0 comments on commit a9ea876

Please sign in to comment.