mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
decouple use_syslog from pid_flags
Sometimes we need processes to run in the foreground to be supervised and at the same time use syslog facility instead of logging its stdout, stderr output
This commit is contained in:
+1
-1
@@ -1726,8 +1726,8 @@ main(int argc, char **argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
USE_SYSLOG(argv[0], pid_flags);
|
||||
if (pid_flags) {
|
||||
USE_SYSLOG(argv[0]);
|
||||
daemonize(pid_path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user