Handle SIGTERM

This commit is contained in:
Lurker00 2024-09-10 11:26:15 +03:00 committed by hufrea
parent 950e85df2c
commit 1d6c0a132e

View file

@ -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) {