mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-29 04:03:45 +00:00
Add isatty check when change STDERR_FILENO to a file
This commit is contained in:
@@ -1093,6 +1093,8 @@ int main(int argc, char **argv)
|
||||
|
||||
opterr = 0;
|
||||
|
||||
USE_TTY();
|
||||
|
||||
while ((c = getopt_long(argc, argv, "f:s:p:l:k:t:m:c:i:d:a:uv",
|
||||
long_options, &option_index)) != -1) {
|
||||
switch (c) {
|
||||
|
||||
Reference in New Issue
Block a user