#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;
#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
#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 */
return(PS_IOERR);
}
- sigchld = signal(SIGCLD, SIG_DFL);
+ sigchld = signal(SIGCHLD, SIG_DFL);
}
else
{
if (ctl->mda[0])
{
closemailpipe(mboxfd);
- signal(SIGCLD, sigchld);
+ signal(SIGCHLD, sigchld);
}
return(PS_IOERR);
}
if (ctl->mda[0])
{
closemailpipe(mboxfd);
- signal(SIGCLD, sigchld);
+ signal(SIGCHLD, sigchld);
}
return(PS_IOERR);
}
/* close the delivery pipe, we'll reopen before next message */
rc = closemailpipe(mboxfd);
- signal(SIGCLD, sigchld);
+ signal(SIGCHLD, sigchld);
if (rc)
return(PS_IOERR);
}