<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/unix/process/process_unix.rs, branch 1.48.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.48.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.48.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-10-02T18:27:11+00:00</updated>
<entry>
<title>Rollup merge of #77432 - tmiasko:posix-spawn-musl, r=cuviper</title>
<updated>2020-10-02T18:27:11+00:00</updated>
<author>
<name>Jonas Schievink</name>
<email>jonasschievink@gmail.com</email>
</author>
<published>2020-10-02T18:27:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72d275d844e426e435942dbb7f82bf5be32610fe'/>
<id>urn:sha1:72d275d844e426e435942dbb7f82bf5be32610fe</id>
<content type='text'>
Use posix_spawn on musl targets

The posix_spawn had been available in a form suitable for use in a
Command implementation since musl 0.9.12. Use it in a preference to a
fork when possible, to benefit from CLONE_VM|CLONE_VFORK used there.
</content>
</entry>
<entry>
<title>Auto merge of #77029 - ehuss:command-access, r=dtolnay</title>
<updated>2020-10-02T07:51:24+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-10-02T07:51:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=154f1f544dd68f7b53ff8d9952811e855f4c2d7c'/>
<id>urn:sha1:154f1f544dd68f7b53ff8d9952811e855f4c2d7c</id>
<content type='text'>
Add accessors to Command.

This adds some accessor methods to `Command` to provide a way to access the values set when building the `Command`. An example where this can be useful is to display the command to be executed. This is roughly based on the [`ProcessBuilder`](https://github.com/rust-lang/cargo/blob/13b73cdaf76b2d9182515c9cf26a8f68342d08ef/src/cargo/util/process_builder.rs#L105-L134) in Cargo.

Possible concerns about the API:
- Values with NULs on Unix will be returned as `"&lt;string-with-nul&gt;"`. I don't think it is practical to avoid this, since otherwise a whole separate copy of all the values would need to be kept in `Command`.
- Does not handle `arg0` on Unix. This can be awkward to support in `get_args` and is rarely used. I figure if someone really wants it, it can be added to `CommandExt` as a separate method.
- Does not offer a way to detect `env_clear`. I'm uncertain if it would be useful for anyone.
- Does not offer a way to get an environment variable by name (`get_env`). I figure this can be added later if anyone really wants it. I think the motivation for this is weak, though. Also, the API could be a little awkward (return a `Option&lt;Option&lt;&amp;OsStr&gt;&gt;`?).
- `get_envs` could skip "cleared" entries and just return `&amp;OsStr` values instead of `Option&lt;&amp;OsStr&gt;`. I'm on the fence here. My use case is to display a shell command, and I only intend it to be roughly equivalent to the actual execution, and I probably won't display `None` entries. I erred on the side of providing extra information, but I suspect many situations will just filter out the `None`s.
- Could implement more iterator stuff (like `DoubleEndedIterator`).

I have not implemented new std items before, so I'm uncertain if the existing issue should be reused, or if a new tracking issue is needed.

cc #44434
</content>
</entry>
<entry>
<title>Use posix_spawn on musl targets</title>
<updated>2020-10-01T00:00:00+00:00</updated>
<author>
<name>Tomasz Miąsko</name>
<email>tomasz.miasko@gmail.com</email>
</author>
<published>2020-10-01T00:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9845e7d5fbfd961c0299c974e701357d79af3cf8'/>
<id>urn:sha1:9845e7d5fbfd961c0299c974e701357d79af3cf8</id>
<content type='text'>
The posix_spawn had been available in a form suitable for use in a
Command implementation since musl 0.9.12. Use it in a preference to a
fork when possible, to benefit from CLONE_VM|CLONE_VFORK used there.
</content>
</entry>
<entry>
<title>Use `rtassert!` instead of `assert!` from the child process after fork() in std::sys::unix::process::Command::spawn()</title>
<updated>2020-09-29T07:16:46+00:00</updated>
<author>
<name>hyd-dev</name>
<email>yd-huang@outlook.com</email>
</author>
<published>2020-09-29T07:16:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a2526b416fb4ca7874fa41a3eb595f456703d486'/>
<id>urn:sha1:a2526b416fb4ca7874fa41a3eb595f456703d486</id>
<content type='text'>
`assert!` panics on failure, which is not signal-safe.
</content>
</entry>
<entry>
<title>Add accessors to Command.</title>
<updated>2020-09-27T01:58:38+00:00</updated>
<author>
<name>Eric Huss</name>
<email>eric@huss.org</email>
</author>
<published>2020-09-21T18:32:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c297e20e03452c659b6d3f026ce4beee42ed8738'/>
<id>urn:sha1:c297e20e03452c659b6d3f026ce4beee42ed8738</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Ignore unnecessary unsafe warnings</title>
<updated>2020-09-11T17:12:06+00:00</updated>
<author>
<name>Thomas de Zeeuw</name>
<email>thomasdezeeuw@gmail.com</email>
</author>
<published>2020-09-11T17:12:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c394624471c66c42bd9641ab30d2a2ccea894dbc'/>
<id>urn:sha1:c394624471c66c42bd9641ab30d2a2ccea894dbc</id>
<content type='text'>
This is a work-around for a libc issue:
https://github.com/rust-lang/libc/issues/1888.
</content>
</entry>
<entry>
<title>mv std libs to library/</title>
<updated>2020-07-28T00:51:13+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-06-12T02:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c31b45ae878b821975c4ebd94cc1e49f6073fd0'/>
<id>urn:sha1:2c31b45ae878b821975c4ebd94cc1e49f6073fd0</id>
<content type='text'>
</content>
</entry>
</feed>
