summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-07-15 01:39:07 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2020-07-15 01:39:07 +0900
commit68e1fd8faa25fbb4c238f2ea72bb7d835462cd23 (patch)
tree832009081f09d48ec08a93e27a0bb5cd316a03b1
parent55314c1878dc6129ea4f4f6543645590ca4cbc27 (diff)
downloadrust-libc-68e1fd8faa25fbb4c238f2ea72bb7d835462cd23.tar.gz
openbsd: Fix `WIFSTOPPED` following upstream
https://github.com/openbsd/src/blob/b66614995ab119f75167daaa7755b34001836821/sys/sys/wait.h#L52
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index 47a5585d34..02a1b05996 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -1385,7 +1385,7 @@ f! {
}
pub fn WIFSTOPPED(status: ::c_int) -> bool {
- (status & 0o177) == 0o177
+ (status & 0xff) == 0o177
}
}