diff options
| author | Joe Richey <joerichey@google.com> | 2019-07-28 23:09:21 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2019-07-28 23:09:21 -0700 |
| commit | 0cdd693bf6c8eb5aa0b4f2b2f82c545e5bd56f59 (patch) | |
| tree | 6631b9654619ed61ba6b102d769d552669e0d6c8 /src/libstd/sys/vxworks/pipe.rs | |
| parent | 8b94e9e9188b65df38a5f1ae723617dc2dfb3155 (diff) | |
| download | rust-0cdd693bf6c8eb5aa0b4f2b2f82c545e5bd56f59.tar.gz rust-0cdd693bf6c8eb5aa0b4f2b2f82c545e5bd56f59.zip | |
vxworks: Remove Linux-specific comments.
Diffstat (limited to 'src/libstd/sys/vxworks/pipe.rs')
| -rw-r--r-- | src/libstd/sys/vxworks/pipe.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstd/sys/vxworks/pipe.rs b/src/libstd/sys/vxworks/pipe.rs index 83637832ff3..e09dbe6e99b 100644 --- a/src/libstd/sys/vxworks/pipe.rs +++ b/src/libstd/sys/vxworks/pipe.rs @@ -11,11 +11,6 @@ pub fn anon_pipe() -> io::Result<(AnonPipe, AnonPipe)> { static INVALID: AtomicBool = AtomicBool::new(false); let mut fds = [0; 2]; - - // Unfortunately the only known way right now to create atomically set the - // CLOEXEC flag is to use the `pipe2` syscall on Linux. This was added in - // 2.6.27, however, and because we support 2.6.18 we must detect this - // support dynamically. cvt(unsafe { libc::pipe(fds.as_mut_ptr()) })?; let fd0 = FileDesc::new(fds[0]); |
