]> Pileus Git - ~andy/fetchmail/commitdiff
SIGCLD -> SIGCHLD.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 12 Dec 1996 17:47:21 +0000 (17:47 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 12 Dec 1996 17:47:21 +0000 (17:47 -0000)
svn path=/trunk/; revision=628

daemon.c
driver.c

index 853094d94ad0c429436bceb063c0ec956d53801d..0e48ffb171680d225612cea88a2940e9b4343c61 100644 (file)
--- a/daemon.c
+++ b/daemon.c
 #endif
 
 /* BSD portability hack */
-#if !defined(SIGCLD) && defined(SIGCHLD)
-#define SIGCLD SIGCHLD
+#if !defined(SIGCHLD) && defined(SICHLD)
+#define SIGCHLD        SIGCLD
 #endif
 
 #include "fetchmail.h"
 
 RETSIGTYPE
 sigchld_handler (int sig)
-/* process SIGCHLD/SIGCLD to obtain the exit code of the terminating process */
+/* process SIGCHLD to obtain the exit code of the terminating process */
 {
   pid_t pid;
 
@@ -178,7 +178,7 @@ nottyDetach:
 #endif
 
   /* set up to catch child process termination signals */ 
-  signal(SIGCLD, sigchld_handler); 
+  signal(SIGCHLD, sigchld_handler); 
 #if defined(SIGPWR)
   signal(SIGPWR, sigchld_handler); 
 #endif
index 0334e1326a718df3dddaa715f75fa38357c7bff0..ea9ea8a020706f1d87dbdb4e41e053d9cbfc50f0 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -44,8 +44,8 @@
 #include  "smtp.h"
 
 /* BSD portability hack...I know, this is an ugly place to put it */
-#if !defined(SIGCLD) && defined(SIGCHLD)
-#define SIGCLD SIGCHLD
+#if !defined(SIGCHLD) && defined(SIGCLD)
+#define SIGCHLD        SIGCLD
 #endif
 
 #define        SMTP_PORT       25      /* standard SMTP service port */
@@ -539,7 +539,7 @@ struct query *ctl;  /* query control record */
                    return(PS_IOERR);
                }
 
-               sigchld = signal(SIGCLD, SIG_DFL);
+               sigchld = signal(SIGCHLD, SIG_DFL);
            }
            else
            {
@@ -635,7 +635,7 @@ struct query *ctl;  /* query control record */
                if (ctl->mda[0])
                {
                    closemailpipe(mboxfd);
-                   signal(SIGCLD, sigchld);
+                   signal(SIGCHLD, sigchld);
                }
                return(PS_IOERR);
            }
@@ -723,7 +723,7 @@ struct query *ctl;  /* query control record */
            if (ctl->mda[0])
            {
                closemailpipe(mboxfd);
-               signal(SIGCLD, sigchld);
+               signal(SIGCHLD, sigchld);
            }
            return(PS_IOERR);
        }
@@ -740,7 +740,7 @@ struct query *ctl;  /* query control record */
 
        /* close the delivery pipe, we'll reopen before next message */
        rc = closemailpipe(mboxfd);
-       signal(SIGCLD, sigchld);
+       signal(SIGCHLD, sigchld);
        if (rc)
            return(PS_IOERR);
     }