mirror of
https://github.com/hufrea/byedpi.git
synced 2024-11-21 14:35:22 +03:00
Handle SIGTERM
This commit is contained in:
parent
950e85df2c
commit
1d6c0a132e
1 changed files with 1 additions and 0 deletions
1
proxy.c
1
proxy.c
|
@ -974,6 +974,7 @@ int run(struct sockaddr_ina *srv)
|
|||
uniperror("signal SIGPIPE!");
|
||||
#endif
|
||||
signal(SIGINT, on_cancel);
|
||||
signal(SIGTERM, on_cancel);
|
||||
|
||||
int fd = listen_socket(srv);
|
||||
if (fd < 0) {
|
||||
|
|
Loading…
Reference in a new issue