]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/proc.c
Use Proc_GenericSignalHandler() as handler for SIGTERM by default
[ngircd-alex.git] / src / ngircd / proc.c
index f5438834c1842fa3453b6cc6da62a817e3fd9042..11cb0396644548387926407913f09530e3373dcd 100644 (file)
@@ -66,6 +66,7 @@ Proc_Fork(PROC_STAT *proc, int *pipefds, void (*cbfunc)(int, short))
                return -1;
        case 0:
                /* New child process: */
+               signal(SIGTERM, Proc_GenericSignalHandler);
                close(pipefds[0]);
                return 0;
        }