Skip to content

Commit 53bb038

Browse files
committed
Auto merge of #521 - radupopescu:master, r=alexcrichton
WIFCONTINUED function on Linux and FreeBSD * Adds the missing WIFCONTINUED function to Linux (in `src/unix/notbsd/mod.rs`). * Modifies the signature of WIFCONTINUED on FreeBSD (`src/unix/bsd/freebsdlike/mod.rs`) to be consistent with the ones on MacOS and Linux.
2 parents cfc0165 + ff8c71a commit 53bb038

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ pub const NETGRAPHDISC: ::c_int = 0x6;
756756
pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
757757

758758
f! {
759-
pub fn WIFCONTINUED(status: ::c_int) -> ::c_int {
760-
status & 0o23
759+
pub fn WIFCONTINUED(status: ::c_int) -> bool {
760+
status == 0x13
761761
}
762762

763763
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {

src/unix/notbsd/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,10 @@ f! {
667667
(status >> 8) & 0xff
668668
}
669669

670+
pub fn WIFCONTINUED(status: ::c_int) -> bool {
671+
status == 0xffff
672+
}
673+
670674
pub fn WIFSIGNALED(status: ::c_int) -> bool {
671675
((status & 0x7f) + 1) as i8 >= 2
672676
}

0 commit comments

Comments
 (0)