diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-10-08 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-10-08 23:53:15 +0200 |
| commit | 5faf25b95cac4f5b5d893ca3791d00f95342a6ac (patch) | |
| tree | 472d002d5b7667a21b48330e635781b2e448177d /compiler/rustc_codegen_llvm/src | |
| parent | 6b8d7911a1d329d0d98b90606d8c2cb808af090a (diff) | |
| download | rust-5faf25b95cac4f5b5d893ca3791d00f95342a6ac.tar.gz rust-5faf25b95cac4f5b5d893ca3791d00f95342a6ac.zip | |
Check for non-zero return value from posix_spawn functions
The cvt function compares the argument with -1 and when equal returns a new io::Error constructed from errno. It is used together posix_spawn_* functions. This is incorrect. Those functions do not set errno. Instead they return non-zero error code directly. Check for non-zero return code and use it to construct a new io::Error.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
