<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/unix/process/process_unix, branch 1.56.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-05-13T17:42:52+00:00</updated>
<entry>
<title>Tolerate SIGTRAP for panic abort after panic::always_abort</title>
<updated>2021-05-13T17:42:52+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-05-13T17:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6369637a192bbd0a2fbf8084345ddb7c099aa460'/>
<id>urn:sha1:6369637a192bbd0a2fbf8084345ddb7c099aa460</id>
<content type='text'>
Some platforma (eg ARM64) apparently generate SIGTRAP for panic abort!

See eg
  https://github.com/rust-lang/rust/pull/81858#issuecomment-840702765

This is probably a bug, but we don't want to entangle this MR with it.
When it's fixed, this commit should be reverted.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
<entry>
<title>panic/fork test: Do not run on emscripten</title>
<updated>2021-05-07T15:51:13+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-05-07T15:15:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8220f2f2127b9aec972163ded97be7d8cff6b9a8'/>
<id>urn:sha1:8220f2f2127b9aec972163ded97be7d8cff6b9a8</id>
<content type='text'>
fork fails there.  The failure message is confusing: so c.status()
returns an Err, the closure panics, and the test thinks the panic was
propagated from inside the child.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
Co-authored-by: Mara Bos &lt;m-ou.se@m-ou.se&gt;
</content>
</entry>
<entry>
<title>panic ui test: Provide comprehensive test for panic after fork</title>
<updated>2021-05-07T10:17:44+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-02-07T12:16:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a17eab7beddf87807d9d7fc71b7dfb90b5e2488a'/>
<id>urn:sha1:a17eab7beddf87807d9d7fc71b7dfb90b5e2488a</id>
<content type='text'>
This tests that we can indeed safely panic after fork, both
a raw libc::fork and in a Command pre_exec hook.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
Co-authored-by: Mara Bos &lt;m-ou.se@m-ou.se&gt;
</content>
</entry>
<entry>
<title>panic tests: Command: Test that we do not unwind past fork</title>
<updated>2021-05-07T10:17:44+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-02-07T11:42:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f8015061c88ba35f7af09ff68a054ffe6c87990c'/>
<id>urn:sha1:f8015061c88ba35f7af09ff68a054ffe6c87990c</id>
<content type='text'>
This is safe (does not involve heap allocation) but we don't yet have
a test to ensure that stays true.  That will come in a moment.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
Co-authored-by: Mara Bos &lt;m-ou.se@m-ou.se&gt;
</content>
</entry>
<entry>
<title>ExitStatus: print "exit status: {}" rather than "exit code: {}"</title>
<updated>2021-03-25T10:27:53+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-03-25T10:27:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=11e40ce240d884303bee142a727decaeeef43bdb'/>
<id>urn:sha1:11e40ce240d884303bee142a727decaeeef43bdb</id>
<content type='text'>
Proper Unix terminology is "exit status" (vs "wait status").  "exit
code" is imprecise on Unix and therefore unclear.  (As far as I can
tell, "exit code" is correct terminology on Windows.)

This new wording is unfortunately inconsistent with the identifier
names in the Rust stdlib.

It is the identifier names that are wrong, as discussed at length in eg
  https://doc.rust-lang.org/nightly/std/process/struct.ExitStatus.html
  https://doc.rust-lang.org/nightly/std/os/unix/process/trait.ExitStatusExt.html

Unfortunately for API stability reasons it would be a lot of work, and
a lot of disruption, to change the names in the stdlib (eg to rename
`std::process::ExitStatus` to `std::process::ChildStatus` or
something), but we should fix the message output.  Many (probably
most) readers of these messages about exit statuses will be users and
system administrators, not programmers, who won't even know that Rust
has this wrong terminology.

So I think the right thing is to fix the documentation (as I have
already done) and, now, the terminology in the implementation.

This is a user-visible change to the behaviour of all Rust programs
which run Unix subprocesses.  Hopefully no-one is matching against the
exit status string, except perhaps in tests.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
<entry>
<title>Always compile the fragile wait status test cases, just run them conditionally</title>
<updated>2021-03-09T10:53:03+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson+github@slimy.greenend.org.uk</email>
</author>
<published>2021-03-09T10:53:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=11ca64401a5d562898e8b5f46bd36d6d1c6dc3ef'/>
<id>urn:sha1:11ca64401a5d562898e8b5f46bd36d6d1c6dc3ef</id>
<content type='text'>
Co-authored-by: David Tolnay &lt;dtolnay@gmail.com&gt;</content>
</entry>
<entry>
<title>ExitStatus tests: Make less legible to satisfy "tidy"</title>
<updated>2021-03-04T12:44:19+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-03-04T12:44:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8e4433ab3e6a0fe8cc6f83379b30a48f94da4f33'/>
<id>urn:sha1:8e4433ab3e6a0fe8cc6f83379b30a48f94da4f33</id>
<content type='text'>
I strongly disagree with tidy in this case but AIUI there is no way to
override it.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
<entry>
<title>ExitStatus unknown wait status test: Make it Linux only</title>
<updated>2021-03-04T12:26:27+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-03-04T12:26:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a240ff5a7713f744755855c507eab327f90cd824'/>
<id>urn:sha1:a240ff5a7713f744755855c507eab327f90cd824</id>
<content type='text'>
If different unices have different bit patterns for WIFSTOPPED and
WIFCONTINUED then simply being glibc is probably not good enough for
this rather ad-hoc test to work.  Do it on Linux only.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
<entry>
<title>ExitStatus stop signal display test: Make it Linux only</title>
<updated>2021-03-04T12:18:04+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-03-04T12:18:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=67cfc22ee228cee1a795ca1f7430165984fe1b04'/>
<id>urn:sha1:67cfc22ee228cee1a795ca1f7430165984fe1b04</id>
<content type='text'>
MacOS uses a different representation.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
<entry>
<title>process::unix: Test wait status formatting</title>
<updated>2021-02-23T00:58:10+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-02-22T14:58:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d8cfd56985bd8cc32274bfead4b1499da1c38810'/>
<id>urn:sha1:d8cfd56985bd8cc32274bfead4b1499da1c38810</id>
<content type='text'>
Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
</feed>
