Skip to content

Commit 9b936e3

Browse files
committed
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.
2 parents b156fb3 + 8299925 commit 9b936e3

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+2
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,8 @@ pub const SCHED_RR: ::c_int = 2;
11971197
pub const SCHED_BATCH: ::c_int = 3;
11981198
pub const SCHED_IDLE: ::c_int = 5;
11991199

1200+
pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
1201+
12001202
// netinet/in.h
12011203
// NOTE: These are in addition to the constants defined in src/unix/mod.rs
12021204

0 commit comments

Comments
 (0)