Fix Windows build: no fork for kdc

This commit is contained in:
Nicolas Williams
2016-01-18 11:25:23 -06:00
parent 971ccce043
commit 4f87d85d65
3 changed files with 46 additions and 15 deletions

View File

@@ -145,8 +145,10 @@ main(int argc, char **argv)
sigaction(SIGXCPU, &sa, NULL);
#endif
#ifdef SIGCHLD
sa.sa_handler = sigchld;
sigaction(SIGCHLD, &sa, NULL);
#endif
sa.sa_handler = SIG_IGN;
#ifdef SIGPIPE
@@ -156,7 +158,9 @@ main(int argc, char **argv)
#else
signal(SIGINT, sigterm);
signal(SIGTERM, sigterm);
#ifdef SIGCHLD
signal(SIGCHLD, sigchld);
#endif
#ifdef SIGXCPU
signal(SIGXCPU, sigterm);
#endif