diff options
author | Harvey Hunt <harveyhunt@fb.com> | 2022-10-26 21:22:31 +0100 |
---|---|---|
committer | Harvey Hunt <harveyhunt@fb.com> | 2022-10-26 21:22:31 +0100 |
commit | 36aa6ca39cb96627db6882dfaa9044f7b0c9ff02 (patch) | |
tree | 991c55f88646092b9cf0180cb033c5d19e56ed00 /src/unix/linux_like/linux/mod.rs | |
parent | a90993ec230f58ad92401bbbfb45f4c9da783706 (diff) | |
download | rust-libc-36aa6ca39cb96627db6882dfaa9044f7b0c9ff02.tar.gz |
linux: Add POSIX_SPAWN_SETSID flag
This flag allows the child process created by POSIX spawn to create
a new session and become leader of a new process group. Expose the
flag so that Rust code can use it.
Diffstat (limited to 'src/unix/linux_like/linux/mod.rs')
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 15174bc306..273e70fb93 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1593,6 +1593,7 @@ pub const POSIX_MADV_RANDOM: ::c_int = 1; pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2; pub const POSIX_MADV_WILLNEED: ::c_int = 3; pub const POSIX_SPAWN_USEVFORK: ::c_int = 64; +pub const POSIX_SPAWN_SETSID: ::c_int = 128; pub const S_IEXEC: mode_t = 64; pub const S_IWRITE: mode_t = 128; |