[GH-ISSUE #188] kill 命令退出代码不为零 #116

Closed
opened 2026-02-27 23:15:31 +03:00 by kerem · 2 comments
Owner

Originally created by @designinlife on GitHub (Nov 30, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/188

Received an interrupt, stopping services...
accept error , ERR:accept tcp 0.0.0.0:10001: use of closed network connection
service tcp stopped

goproxy 版本: 6.6
直接 kill 或 kill -s QUIT 时,报以上错误!

Originally created by @designinlife on GitHub (Nov 30, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/188 Received an interrupt, stopping services... accept error , ERR:accept tcp 0.0.0.0:10001: use of closed network connection service tcp stopped goproxy 版本: 6.6 直接 kill 或 kill -s QUIT 时,报以上错误!
kerem 2026-02-27 23:15:31 +03:00
Author
Owner

@snail007 commented on GitHub (Nov 30, 2018):

正常日志,不是错误。

<!-- gh-comment-id:443207602 --> @snail007 commented on GitHub (Nov 30, 2018): 正常日志,不是错误。
Author
Owner

@designinlife commented on GitHub (Dec 2, 2018):

但是 exit code = 1, 这个貌似不好控制流程
比如:我要写个 Bash 脚本要判断是否正常退出

当然,关闭进程一般强杀也没啥事

systemd 管理进程会出现: Process: 50948 ExecStop=/bin/kill -s QUIT (code=exited, status=1/FAILURE)

<!-- gh-comment-id:443480175 --> @designinlife commented on GitHub (Dec 2, 2018): 但是 exit code = 1, 这个貌似不好控制流程 比如:我要写个 Bash 脚本要判断是否正常退出 当然,关闭进程一般强杀也没啥事 systemd 管理进程会出现: Process: 50948 ExecStop=/bin/kill -s QUIT (code=exited, status=1/FAILURE)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#116
No description provided.