We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 802994b commit 3887f93Copy full SHA for 3887f93
1 file changed
src/main.rs
@@ -227,8 +227,7 @@ fn do_main() -> Result<()> {
227
// We do this by creating a pipe. The pipe can be closed by either the child process exiting,
228
// or the child process closing it.
229
let (parent, child) = rustix::pipe::pipe_with(PipeFlags::CLOEXEC)?;
230
- // SAFETY: forking is safe because we are single-threaded now.
231
- match safe_fork::fork()? {
+ match safe_fork::fork().expect("should still be single-threaded") {
232
None => {
233
drop(parent);
234
tokio::runtime::Runtime::new()?.block_on(create(args.global, create_options, child))?;
0 commit comments