diff --git a/bin/common/daemonize/unix.rs b/bin/common/daemonize/unix.rs index 9f36bd96..9a2cf93f 100644 --- a/bin/common/daemonize/unix.rs +++ b/bin/common/daemonize/unix.rs @@ -8,7 +8,7 @@ use log::error; /// This function will redirect `stdout`, `stderr` to `/dev/null`, /// and follow the exact behavior in shadowsocks-libev pub fn daemonize>(pid_path: Option) { - let mut d = Daemonize::new().umask(0).chroot("/"); + let mut d = Daemonize::new().umask(0); if let Some(p) = pid_path { d = d.pid_file(p); }