mirror of
https://github.com/hufrea/byedpi.git
synced 2024-11-25 00:05:31 +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!");
|
uniperror("signal SIGPIPE!");
|
||||||
#endif
|
#endif
|
||||||
signal(SIGINT, on_cancel);
|
signal(SIGINT, on_cancel);
|
||||||
|
signal(SIGTERM, on_cancel);
|
||||||
|
|
||||||
int fd = listen_socket(srv);
|
int fd = listen_socket(srv);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
|
|
Loading…
Reference in a new issue