mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
remove chroot when daemonizing (#640)
This commit is contained in:
@@ -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<F: AsRef<Path>>(pid_path: Option<F>) {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user