INN commit: trunk/innfeed (endpoint.c)

INN Commit Russ_Allbery at isc.org
Fri Sep 21 20:04:24 UTC 2007


    Date: Friday, September 21, 2007 @ 13:04:24
  Author: iulius
Revision: 7689

Fix a problem with innfeed continuously segfaulting on
amd64 hardware (and possibly on lots of 64 bits platforms);
sig_atomic_t is indeed a long and not an integer there.

Patch from Ollivier Robert.  Many thanks to him and also
to Kai Gallasch for having reported the problem and provided
the FreeBSD server to debug it.

Modified:
  trunk/innfeed/endpoint.c

------------+
 endpoint.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: endpoint.c
===================================================================
--- endpoint.c	2007-09-20 21:53:55 UTC (rev 7688)
+++ endpoint.c	2007-09-21 20:04:24 UTC (rev 7689)
@@ -1644,7 +1644,7 @@
   if (sigHandlers == NULL)
     {
       sigHandlers = xmalloc (sizeof(sigfn) * NSIG) ;
-      sigFlags = xmalloc (sizeof(int) * NSIG) ;
+      sigFlags = xmalloc (sizeof(sig_atomic_t) * NSIG) ;
       for (i = 0 ; i < NSIG ; i++)
         {
           sigHandlers [i] = NULL ;



More information about the inn-committers mailing list