diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-05-12 05:08:15 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-05-12 05:08:15 +0000 |
commit | 4e475032328d5fdaead5daaf6a00a46979cabf6e (patch) | |
tree | 0d4c1bedae4f261c3e902866c1b0e925b41f3db2 | |
parent | 82c1fcd560054c0d7a93712f2c24c14abe2294bf (diff) | |
download | fetchmail-4e475032328d5fdaead5daaf6a00a46979cabf6e.tar.gz fetchmail-4e475032328d5fdaead5daaf6a00a46979cabf6e.tar.bz2 fetchmail-4e475032328d5fdaead5daaf6a00a46979cabf6e.zip |
SA_RESTART and portability fixes.
svn path=/trunk/; revision=3301
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | daemon.c | 8 | ||||
-rw-r--r-- | lock.c | 3 | ||||
-rw-r--r-- | odmr.c | 3 | ||||
-rw-r--r-- | socket.c | 1 |
5 files changed, 18 insertions, 1 deletions
@@ -2,6 +2,10 @@ (The `lines' figures total .c, .h, .l, and .y files under version control.) +* GCC warning cleanups from ahaas@neosoft.com. +* Plug another hole that was letting zombies through. +* SA_RESDTART portability fix for SunOS. + fetchmail-5.8.2 (Tue May 8 17:07:53 EDT 2001), 20481 lines: * HH's patches fixing Debian bug #90966 and addressing Debian bug #92554. @@ -90,10 +90,13 @@ void deal_with_sigchld(void) memset (&sa_new, 0, sizeof sa_new); sigemptyset (&sa_new.sa_mask); - sa_new.sa_handler = SIG_IGN; + /* sa_new.sa_handler = SIG_IGN; pointless */ /* set up to catch child process termination signals */ sa_new.sa_handler = sigchld_handler; +#ifdef SA_RESTART /* SunOS 4.1 portability hack */ + sa_new.sa_flags = SA_RESTART; +#endif sigaction (SIGCHLD, &sa_new, NULL); #if defined(SIGPWR) sigaction (SIGPWR, &sa_new, NULL); @@ -127,6 +130,9 @@ daemonize (const char *logfile, void (*termhook)(int)) memset (&sa_new, 0, sizeof sa_new); sigemptyset (&sa_new.sa_mask); sa_new.sa_handler = SIG_IGN; +#ifdef SA_RESTART /* SunOS 4.1 portability hack */ + sa_new.sa_flags = SA_RESTART; +#endif #endif /* HAVE_SIGACTION */ #ifdef SIGTTOU #ifndef HAVE_SIGACTION @@ -6,6 +6,9 @@ #include "config.h" #include <stdio.h> +#ifdef HAVE_STRING_H +#include <string.h> /* strcat() */ +#endif #if defined(STDC_HEADERS) #include <stdlib.h> #endif @@ -9,6 +9,9 @@ #include <stdio.h> #include <stdlib.h> #include <assert.h> +#ifdef HAVE_STRING_H /* strcat() */ +#include <string.h> +#endif #ifdef HAVE_NET_SOCKET_H /* BeOS needs this */ #include <net/socket.h> #endif @@ -9,6 +9,7 @@ #include <stdio.h> #include <errno.h> #include <string.h> +#include <ctype.h> /* isspace() */ #ifdef HAVE_MEMORY_H #include <memory.h> #endif /* HAVE_MEMORY_H */ |