1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-05 02:00:25 +08:00
This commit is contained in:
源文雨
2022-10-27 23:41:46 +08:00
parent b2392a1ade
commit eda7d75a33

View File

@@ -833,7 +833,7 @@ static void accept_client(int fd) {
perror("Error when forking a subprocess");
sleep(1);
}*/
#ifdef __APPLE__
#if defined __USE_POSIX199309 || __APPLE__
sigaction(SIGINT , &(const struct sigaction){handle_int , 0, 0}, NULL);
sigaction(SIGQUIT, &(const struct sigaction){handle_quit, 0, 0}, NULL);
sigaction(SIGKILL, &(const struct sigaction){handle_kill, 0, 0}, NULL);