| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-03-10 | Rollup merge of #82949 - the8472:forget-envlock-on-fork, r=joshtriplett | Dylan DPC | -1/+10 | |
| Do not attempt to unlock envlock in child process after a fork. This implements the first two points from https://github.com/rust-lang/rust/issues/64718#issuecomment-793030479 This is a breaking change for cases where the environment is accessed in a Command::pre_exec closure. Except for single-threaded programs these uses were not correct anyway since they aren't async-signal safe. Note that we had a ui test that explicitly tried `env::set_var` in `pre_exec`. As expected it failed with these changes when I tested locally. | ||||
| 2021-03-10 | Rollup merge of #82411 - ijackson:fix-exitstatus, r=dtolnay | Yuki Okushi | -2/+12 | |
| Fixes to ExitStatus and its docs * On Unix, properly display every possible wait status (and don't panic on weird values) * In the documentation, be clear and consistent about "exit status" vs "wait status". | ||||
| 2021-03-09 | Do not attempt to unlock envlock in child process after a fork. | The8472 | -1/+10 | |
| This is a breaking change for cases where the environment is accessed in a Command::pre_exec closure. Except for single-threaded programs these uses were not correct anyway since they aren't async-signal safe. | ||||
| 2021-02-28 | unix: Non-mutable bufs in send_vectored_with_ancillary_to | LinkTed | -45/+48 | |
| Change the arguments of `send_vectored_with_ancillary` and `send_vectored_with_ancillary_to` to take an non-mutable bufs. | ||||
| 2021-02-23 | Update outdated comment in unix Command. | Eric Huss | -0/+2 | |
| 2021-02-23 | ExitStatus: Improve documentation re wait status vs exit status | Ian Jackson | -2/+12 | |
| The use of `ExitStatus` as the Rust type name for a Unix *wait status*, not an *exit status*, is very confusing, but sadly probably too late to change. This area is confusing enough in Unix already (and many programmers are already confuxed). We can at least document it. I chose *not* to mention the way shells like to exit with signal numbers, thus turning signal numbers into exit statuses. This is only relevant for Rust programs using `std::process` if they run shells. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-02-10 | Seal the CommandExt, OsStrExt and OsStringExt traits | Amanieu d'Antras | -13/+6 | |
| 2021-01-21 | Add setgroups to std::os::unix::process::CommandExt | slo1 | -0/+18 | |
| 2021-01-13 | Fix typo saeled -> sealed | David Tolnay | -1/+1 | |
| 2021-01-13 | ExitStatusExt unix: Retrospectively seal this trait | Ian Jackson | -1/+15 | |
| As discussed in #79982. I think the "new interfaces", ie the new trait and impl, must be insta-stable. This seems OK because we are, in fact, adding a new restriction to the stable API. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-01-13 | unix ExitStatus: Add tracking issue to new methods | Ian Jackson | -4/+4 | |
| Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-01-13 | Replace `Ie` with `In other words` | Ian Jackson | -1/+1 | |
| Co-authored-by: Joshua Nelson <joshua@yottadb.com> | ||||
| 2021-01-13 | Replace `Ie` with `In other words` | Ian Jackson | -1/+1 | |
| Co-authored-by: Joshua Nelson <joshua@yottadb.com> | ||||
| 2021-01-13 | unix ExitStatus: Provide .continued() | Ian Jackson | -0/+11 | |
| Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-01-13 | unix ExitStatus: Provide .stopped_signal() | Ian Jackson | -0/+11 | |
| Necessary to handle WIFSTOPPED. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-01-13 | unix ExitStatus: Provide .core_dumped | Ian Jackson | -0/+8 | |
| This is essential for proper reporting of child process status on Unix. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-01-13 | unix ExitStatus: Provide .into_raw() | Ian Jackson | -0/+8 | |
| Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2021-01-13 | unix ExitStatus: Clarify docs for .signal() | Ian Jackson | -0/+2 | |
| We need to be clear that this never returns WSTOPSIG. That is, if WIFSTOPPED, the return value is None. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||||
| 2020-12-16 | Fix failing build of std on armv5te-unknown-linux-uclibceabi due to missing ↵ | Ondrej Perutka | -1/+5 | |
| cmsg_len_zero | ||||
| 2020-12-09 | Auto merge of #79387 - woodruffw-forks:ww/peer-cred-pid-macos, r=Amanieu | bors | -15/+57 | |
| ext/ucred: Support PID in peer creds on macOS This is a follow-up to https://github.com/rust-lang/rust/pull/75148 (RFC: https://github.com/rust-lang/rust/issues/42839). The original PR used `getpeereid` on macOS and the BSDs, since they don't (generally) support the `SO_PEERCRED` mechanism that Linux supplies. This PR splits the macOS/iOS implementation of `peer_cred()` from that of the BSDs, since macOS supplies the `LOCAL_PEERPID` sockopt as a source of the missing PID. It also adds a `cfg`-gated tests that ensures that platforms with support for PIDs in `UCred` have the expected data. | ||||
| 2020-12-02 | Auto merge of #69864 - LinkTed:master, r=Amanieu | bors | -1771/+3058 | |
| unix: Extend UnixStream and UnixDatagram to send and receive file descriptors Add the functions `recv_vectored_fds` and `send_vectored_fds` to `UnixDatagram` and `UnixStream`. With this functions `UnixDatagram` and `UnixStream` can send and receive file descriptors, by using `recvmsg` and `sendmsg` system call. | ||||
| 2020-11-26 | Add comment for the previous android bug fix | LinkTed | -0/+4 | |
| 2020-11-24 | Bug fix for android platform, because of the wrong behavior of CMSG_NXTHDR | LinkTed | -0/+19 | |
| 2020-11-24 | ext/ucred: fmt check | William Woodruff | -26/+8 | |
| 2020-11-24 | ext/ucred: Support PID in peer creds on macOS | William Woodruff | -5/+65 | |
| 2020-11-14 | Disambiguate symlink argument names | David Tolnay | -3/+3 | |
| 2020-11-04 | Fix docs for MacOs (again) | LinkTed | -1/+2 | |
| 2020-11-03 | Fix docs for MacOs (correction) | LinkTed | -1/+2 | |
| 2020-10-28 | Fix test cases for MacOs | LinkTed | -2/+28 | |
| 2020-10-17 | Fix cannot find type `ucred` for MacOs by using fake definitions | LinkTed | -1/+1 | |
| 2020-10-16 | Take some of sys/vxworks/process/* from sys/unix instead. | Mara Bos | -4/+20 | |
| 2020-10-16 | Take sys/vxworks/{fd,fs,io} from sys/unix instead. | Mara Bos | -0/+7 | |
| 2020-10-11 | Fix unresolved imports for `recv_vectored_with_ancillary_from`, ↵ | LinkTed | -0/+1 | |
| `send_vectored_with_ancillary_to` and `SocketAncillary` | ||||
| 2020-10-10 | Fix unresolved link to `SocketAncillary` | LinkTed | -0/+2 | |
| 2020-10-10 | Fix `libc` is ambiguous for Windows | LinkTed | -9/+6 | |
| 2020-10-10 | Fix import errors for `#[cfg(doc)]` target | LinkTed | -2/+4 | |
| 2020-10-10 | Add fake definitions for Windows | LinkTed | -0/+10 | |
| 2020-10-10 | Fix imports for MacOs | LinkTed | -8/+4 | |
| 2020-10-10 | Change imports for `cfg(doc)` | LinkTed | -30/+29 | |
| 2020-10-10 | Remove `passcred` for `emscripten` | LinkTed | -4/+4 | |
| 2020-10-10 | Remove unnecessary trailing semicolon | LinkTed | -1/+1 | |
| 2020-10-10 | Fix type mismatching for different OSes. | LinkTed | -41/+105 | |
| 2020-10-10 | Remove `SocketCred` for `emscripten` | LinkTed | -13/+9 | |
| 2020-10-10 | Fix unused import for `IoSliceMut` for macos | LinkTed | -0/+9 | |
| 2020-10-10 | Add conditional compilation for import | LinkTed | -0/+1 | |
| 2020-10-10 | Fix cfg condition for test | LinkTed | -1/+1 | |
| 2020-10-10 | Remove `target_os`, which does not have `SO_PASSCRED` constant in `libc` | LinkTed | -56/+5 | |
| 2020-10-10 | Remove `target_os`, which does not have `cmsghdr` struct in `libc` | LinkTed | -12/+0 | |
| 2020-10-10 | Remove `target_os`, which does not have `MSG_CMSG_CLOEXEC` constant in `libc` | LinkTed | -54/+31 | |
| 2020-10-10 | Add the code of the tracking issue | LinkTed | -36/+36 | |
