summaryrefslogtreecommitdiffhomepage
path: root/oxish
diff options
context:
space:
mode:
Diffstat (limited to 'oxish')
-rw-r--r--oxish/src/server.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/oxish/src/server.rs b/oxish/src/server.rs
index 7a08e04..779284e 100644
--- a/oxish/src/server.rs
+++ b/oxish/src/server.rs
@@ -291,6 +291,10 @@ impl Server {
return Err(io::Error::last_os_error());
}
+ if libc::setsid() == -1 {
+ return Err(io::Error::last_os_error());
+ }
+
Ok(())
});
}