diff --git a/microsandbox-utils/lib/runtime/supervisor.rs b/microsandbox-utils/lib/runtime/supervisor.rs index 665e01b9..96011e90 100644 --- a/microsandbox-utils/lib/runtime/supervisor.rs +++ b/microsandbox-utils/lib/runtime/supervisor.rs @@ -127,8 +127,7 @@ where // Set up child's session and controlling terminal unsafe { command.pre_exec(|| { - nix::unistd::setsid() - .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?; + libc::setsid(); if libc::ioctl(libc::STDIN_FILENO, libc::TIOCSCTTY as _, 1 as libc::c_long) < 0 { return Err(std::io::Error::last_os_error());