add SIGCHILD
[spider.git] / src / client.c
index a3147d551dd4a91bd74dec75519e7131e2740193..29c8bf5cd0f5b654cf6411e776449339d55e08ac 100644 (file)
@@ -901,7 +901,13 @@ main(int argc, char *argv[])
 #ifdef SIGPWR
        signal(SIGPWR, terminate);
 #endif
+#ifdef SIGCLD
        signal(SIGCLD, reaper);
+#else
+       #ifdef SIGCHILD
+       signal(SIGCHILD, reaper);
+       #endif
+#endif
        
        /* init a few things */
        chain_init(&echobase);