Browse Source
Reset errno to 0 before checking it
Reset errno to 0 before checking it
errno is never set to zero by any system call or library function, and it's programmer's resposibility to reset it before doing checks. Otherwise the error might be misleading. Signed-off-by: Syrone Wong <wong.syrone@gmail.com>pull/587/head
Syrone Wong
8 years ago
committed by
Max Lv
6 changed files with 35 additions and 3 deletions
Split View
Diff Options
-
10src/local.c
-
2src/manager.c
-
6src/redir.c
-
8src/server.c
-
6src/tunnel.c
-
6src/utils.c
Write
Preview
Loading…
Cancel
Save