diff options
author | bors <bors@rust-lang.org> | 2019-09-13 23:37:47 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-09-13 23:37:47 +0000 |
commit | 9b936e30116da305b799a74491c82ee2d2e8f678 (patch) | |
tree | 5aa0c286e9cfbb05ff1b02fcd8482bfc91f0a0b3 | |
parent | b156fb3306aaa65d9d95771c23e12e3c11923fc7 (diff) | |
parent | 829992510cfc6add6f1c9bbc86debe50e1ae3ee1 (diff) | |
download | rust-libc-9b936e30116da305b799a74491c82ee2d2e8f678.tar.gz |
Auto merge of #1512 - padenot:reset-on-fork, r=gnzlbg
Add SCHED_RESET_ON_FORK
This is a fix for #1511, and is valid for musl and glibc.
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 2219918aa0..87730a56aa 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1197,6 +1197,8 @@ pub const SCHED_RR: ::c_int = 2; pub const SCHED_BATCH: ::c_int = 3; pub const SCHED_IDLE: ::c_int = 5; +pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000; + // netinet/in.h // NOTE: These are in addition to the constants defined in src/unix/mod.rs |