<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/unix/process/process_common, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-01-11T19:10:25+00:00</updated>
<entry>
<title>std: begin moving platform support modules into `pal`</title>
<updated>2024-01-11T19:10:25+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-01-11T19:10:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=99128b7e45f8b95d962da2e6ea584767f0c85455'/>
<id>urn:sha1:99128b7e45f8b95d962da2e6ea584767f0c85455</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixup! std: unix process: Test exit statuses / wait statuses</title>
<updated>2023-08-22T18:43:00+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-22T18:43:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=281b0501f622601251972a012c9405aa80726471'/>
<id>urn:sha1:281b0501f622601251972a012c9405aa80726471</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: unix process: Test exit statuses / wait statuses</title>
<updated>2023-08-22T16:46:59+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-22T16:29:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=06567ad7fafcf0a2b380a8908d004a3ca8c88333'/>
<id>urn:sha1:06567ad7fafcf0a2b380a8908d004a3ca8c88333</id>
<content type='text'>
This is a pretty basic test but should spot any other platforms which
are `#[cfg(unix)]` but not Unix and where the wait status
representation is wrong.  (And any actual Unix platforms where it's
not as expected, but I don't think they exist.)
</content>
</entry>
<entry>
<title>Change process spawning to inherit the parent's signal mask by default</title>
<updated>2022-10-20T21:53:38+00:00</updated>
<author>
<name>Rain</name>
<email>rain@sunshowers.io</email>
</author>
<published>2022-09-23T05:48:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a52c79e859142c1cd5c0c5bdb73f16b754e1b98f'/>
<id>urn:sha1:a52c79e859142c1cd5c0c5bdb73f16b754e1b98f</id>
<content type='text'>
Previously, the signal mask is always reset when a child process is
started. This breaks tools like `nohup` which expect `SIGHUP` to be
blocked.

With this change, the default behavior changes to inherit the signal mask.

This also changes the signal disposition for `SIGPIPE` to only be
changed if the `#[unix_sigpipe]` attribute isn't set.
</content>
</entry>
<entry>
<title>Use posix_spawn for absolute paths on macOS</title>
<updated>2022-08-29T02:31:09+00:00</updated>
<author>
<name>Rain</name>
<email>rain@sunshowers.io</email>
</author>
<published>2022-08-20T01:24:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd8b4b9c1588f0c681162ead34cc91b3f9a52bfc'/>
<id>urn:sha1:bd8b4b9c1588f0c681162ead34cc91b3f9a52bfc</id>
<content type='text'>
Currently, on macOS, Rust never uses the fast posix_spawn path if a
directory change is requested due to a bug in Apple's libc. However, the
bug is only triggered if the program is a relative path.

This PR makes it so that the fast path continues to work if the program
is an absolute path or a lone filename.

This was an alternative proposed in
https://github.com/rust-lang/rust/pull/80537#issue-776674009, and it
makes a measurable performance difference in some of my code that spawns
thousands of processes.
</content>
</entry>
<entry>
<title>Auto merge of #93530 - anonion0:pthread_sigmask_fix, r=JohnTitor</title>
<updated>2022-04-17T22:54:55+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2022-04-17T22:54:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e27d9df4319bd822e64f620676543d31e9c7ae2c'/>
<id>urn:sha1:e27d9df4319bd822e64f620676543d31e9c7ae2c</id>
<content type='text'>
fix error handling for pthread_sigmask(3)

Errors from `pthread_sigmask(3)` were handled using `cvt()`, which expects a return value of `-1` on error and uses `errno`.
However, `pthread_sigmask(3)` returns `0` on success and an error number otherwise.

Fix it by replacing `cvt()` with `cvt_nz()`.
</content>
</entry>
<entry>
<title>Add a `process_group` method to UNIX `CommandExt`</title>
<updated>2022-03-14T14:33:41+00:00</updated>
<author>
<name>Thomas Orozco</name>
<email>torozco@fb.com</email>
</author>
<published>2022-02-03T09:40:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b628497b7cf8235a7f74fa037e86051fa78b5188'/>
<id>urn:sha1:b628497b7cf8235a7f74fa037e86051fa78b5188</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix error handling for pthread_sigmask(3)</title>
<updated>2022-01-31T22:09:26+00:00</updated>
<author>
<name>Ralf Sager</name>
<email>rsa@3fnc.org</email>
</author>
<published>2022-01-31T22:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c492355aa5282522f8653a4517506a9c0be31164'/>
<id>urn:sha1:c492355aa5282522f8653a4517506a9c0be31164</id>
<content type='text'>
Errors from pthread_sigmask(3) were handled using cvt(), which expects a
return value of -1 on error and uses errno.
However, pthread_sigmask(3) returns 0 on success and an error number
otherwise.
Fix it by replacing cvt() with cvt_nz().
</content>
</entry>
<entry>
<title>Avoid overlapping cfg attributes when both macOS and aarch64</title>
<updated>2020-11-08T14:43:51+00:00</updated>
<author>
<name>Jake Goulding</name>
<email>jake.goulding@gmail.com</email>
</author>
<published>2020-11-08T14:43:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b13817a79566cf313b4bebed3a5caf5ea8879f4e'/>
<id>urn:sha1:b13817a79566cf313b4bebed3a5caf5ea8879f4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: move "mod tests/benches" to separate files</title>
<updated>2020-08-31T02:56:59+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-08-27T13:45:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a4e926daeeaedc9178846711daf1f4cb6ce505fb'/>
<id>urn:sha1:a4e926daeeaedc9178846711daf1f4cb6ce505fb</id>
<content type='text'>
Also doing fmt inplace as requested.
</content>
</entry>
</feed>
