We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b97d96 commit a58ff1fCopy full SHA for a58ff1f
src/sys/wait.rs
@@ -12,12 +12,33 @@ mod ffi {
12
}
13
14
15
+#[cfg(not(any(target_os = "linux",
16
+ target_os = "android")))]
17
bitflags!(
18
flags WaitPidFlag: c_int {
- const WNOHANG = 0x00000001,
19
+ const WNOHANG = 0x00000001,
20
21
);
22
23
+#[cfg(any(target_os = "linux",
24
+ target_os = "android"))]
25
+bitflags!(
26
+ flags WaitPidFlag: c_int {
27
28
+ const WUNTRACED = 0x00000002,
29
+ const WEXITED = 0x00000004,
30
+ const WCONTINUED = 0x00000008,
31
+ const WNOWAIT = 0x01000000, // Don't reap, just poll status.
32
+ const __WNOTHREAD = 0x20000000, // Don't wait on children of other threads in this group
33
+ const __WALL = 0x40000000, // Wait on all children, regardless of type
34
+ // const __WCLONE = 0x80000000,
35
+ }
36
+);
37
+
38
39
40
+const WSTOPPED: WaitPidFlag = WUNTRACED;
41
42
#[derive(Eq, PartialEq, Clone, Copy, Debug)]
43
pub enum WaitStatus {
44
Exited(pid_t, i8),
0 commit comments