<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/os/unix/process.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-11T05:35:17+00:00</updated>
<entry>
<title>Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee</title>
<updated>2025-07-11T05:35:17+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-11T05:35:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2730bebbf88ae9473b339bb7f66eb77fb2c9fa6f'/>
<id>urn:sha1:2730bebbf88ae9473b339bb7f66eb77fb2c9fa6f</id>
<content type='text'>
rust: library: Add `setsid` method to `CommandExt` trait

Add a setsid method to the CommandExt trait so that callers can create a process in a new session and process group whilst still using the POSIX spawn fast path.

Tracking issue: rust-lang/rust#105376

ACP: https://github.com/rust-lang/libs-team/issues/184

This PR was previously submitted by ``@HarveyHunt`` (whom I marked as Co-Author in the commit message) in rust-lang/rust#105377. However that PR went stale.

I applied the [suggestion](https://github.com/rust-lang/rust/pull/105377/files/231d19fcbfe155b2e85116865adae4253380ff1f#r1893457943) to change the function signature to `fn setsid(&amp;mut self, setsid: bool) -&gt; &amp;mut Command`.
</content>
</entry>
<entry>
<title>rust: library: Add setsid method to CommandExt trait</title>
<updated>2025-07-10T03:26:58+00:00</updated>
<author>
<name>LevitatingBusinessMan (Rein Fernhout)</name>
<email>me@levitati.ng</email>
</author>
<published>2025-06-12T00:34:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e0f76871eddd0f1345eba7d09e5ab4812f8aa91d'/>
<id>urn:sha1:e0f76871eddd0f1345eba7d09e5ab4812f8aa91d</id>
<content type='text'>
Add a setsid method to the CommandExt trait so that callers can create
a process in a new session and process group whilst still using the
POSIX spawn fast path.

Co-Authored-By: Harvey Hunt &lt;harveyhunt@fb.com&gt;
</content>
</entry>
<entry>
<title>setup CI and tidy to use typos for spellchecking and fix few typos</title>
<updated>2025-07-03T07:51:06+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-12-07T10:51:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c76d032f0144b650a438ee1efba89c475e0b115b'/>
<id>urn:sha1:c76d032f0144b650a438ee1efba89c475e0b115b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add ChildExt(::send_signal)</title>
<updated>2025-06-18T04:38:55+00:00</updated>
<author>
<name>Jeremy Smart</name>
<email>jeremy3141592@gmail.com</email>
</author>
<published>2025-06-18T04:38:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b3914945ae2d77770c25ed124a8450d82c8f7fe9'/>
<id>urn:sha1:b3914945ae2d77770c25ed124a8450d82c8f7fe9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply suggestions from code review</title>
<updated>2025-05-21T05:48:46+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-05-20T21:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=348c1b0d886960a57a866e537458dae6bf75ec23'/>
<id>urn:sha1:348c1b0d886960a57a866e537458dae6bf75ec23</id>
<content type='text'>
Link `Command::current_dir`.

Co-authored-by: Amanieu d'Antras &lt;amanieu@gmail.com&gt;
</content>
</entry>
<entry>
<title>`CommandExt::chroot`: Add tracking issue</title>
<updated>2025-05-20T16:25:06+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-05-20T16:04:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=17fdf19c9cd566987c3f96f69ac60d4741e05b07'/>
<id>urn:sha1:17fdf19c9cd566987c3f96f69ac60d4741e05b07</id>
<content type='text'>
</content>
</entry>
<entry>
<title>`CommandExt::chroot`: Document difference to underlying `chroot`</title>
<updated>2025-05-20T16:25:06+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-05-20T15:59:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3b750ce0f6d1b40874f88b552d271abea3a3dde'/>
<id>urn:sha1:c3b750ce0f6d1b40874f88b552d271abea3a3dde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `std::os::unix::process::CommandExt::chroot` to safely chroot a child process</title>
<updated>2025-05-20T16:25:05+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-02-27T22:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a3cf6f640828647e34afe96a626b3b4f6bbb22b1'/>
<id>urn:sha1:a3cf6f640828647e34afe96a626b3b4f6bbb22b1</id>
<content type='text'>
This adds a `chroot` method to the `CommandExt` extension trait for the
`Command` builder, to set a directory to chroot into. This will chroot
the child process into that directory right before calling chdir for the
`Command`'s working directory.

To avoid allowing a process to have a working directory outside of the
chroot, if the `Command` does not yet have a working directory set,
`chroot` will set its working directory to "/".
</content>
</entry>
<entry>
<title>docs: fix grammar in doc comment at unix/process.rs</title>
<updated>2024-11-04T18:42:21+00:00</updated>
<author>
<name>NotWearingPants</name>
<email>26556598+NotWearingPants@users.noreply.github.com</email>
</author>
<published>2024-11-04T18:42:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=107b4fdba21d437e7e36b2a62bc803d6a8f31021'/>
<id>urn:sha1:107b4fdba21d437e7e36b2a62bc803d6a8f31021</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add must_use to CommandExt::exec</title>
<updated>2024-10-17T12:46:11+00:00</updated>
<author>
<name>Callum Ryan</name>
<email>callumryan@meta.com</email>
</author>
<published>2024-10-17T12:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=09f75b9862736d38d41a40c5326788d32c3c8276'/>
<id>urn:sha1:09f75b9862736d38d41a40c5326788d32c3c8276</id>
<content type='text'>
</content>
</entry>
</feed>
