mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-29 12:36:53 +00:00
refine commandline output
This commit is contained in:
+8
-5
@@ -941,12 +941,7 @@ int main(int argc, char **argv)
|
||||
switch (c) {
|
||||
case 0:
|
||||
if (option_index == 0) {
|
||||
#ifdef TCP_FASTOPEN
|
||||
fast_open = 1;
|
||||
LOGD("using tcp fast open");
|
||||
#else
|
||||
LOGE("tcp fast open is not supported by this environment");
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
@@ -1053,6 +1048,14 @@ int main(int argc, char **argv)
|
||||
daemonize(pid_path);
|
||||
}
|
||||
|
||||
if (fast_open == 1) {
|
||||
#ifdef TCP_FASTOPEN
|
||||
LOGD("using tcp fast open");
|
||||
#else
|
||||
LOGE("tcp fast open is not supported by this environment");
|
||||
#endif
|
||||
}
|
||||
|
||||
// ignore SIGPIPE
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
|
||||
Reference in New Issue
Block a user