Re: [netatalk-admins] Re: afpd[nnn]: dsi_tcp_open: sigaction: Invalid argument


Subject: Re: [netatalk-admins] Re: afpd[nnn]: dsi_tcp_open: sigaction: Invalid argument
From: a sun (asun@saul1.u.washington.edu)
Date: Thu May 13 1999 - 22:50:22 EDT


   --- libatalk/dsi/dsi_tcp.c.orig Wed Nov 18 16:59:25 1998
   +++ libatalk/dsi/dsi_tcp.c Fri May 14 11:30:07 1999
   @@ -108,6 +108,7 @@
          exit(1);
        }
        newact.sa_handler = timeout_handler;
   + memset(&newact, 0, sizeof(newact));
        if (sigaction(SIGALRM, &newact, &oldact) < 0) {
           syslog(LOG_ERR, "dsi_tcp_open: sigaction: %m");
           exit(1);
   @@ -161,6 +162,7 @@
        }

        /* restore signal */
   + memset(&oldact, 0, sizeof(oldact));
        sigaction(SIGALRM, &oldact, 0);

        syslog(LOG_INFO,"ASIP session:%u(%d) from %s:%u(%d)",

please don't use the above. it's very wrong. get rid of the second
memset and stick the first one above the newact.sa_handler bit.

-a



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:16:43 EST