OSSP CVS Repository

ossp - Check-in [4470]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4470
Date: 2004-Apr-02 12:25:47 (local)
2004-Apr-02 10:25:47 (UTC)
User:thl
Branch:
Comment: fix signal handling on systems resetting handler on execution (Solaris). Reported by Amos Gouaux.
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/THANKS      1.5 -> 1.6     1 inserted, 0 deleted
ossp-pkg/lmtp2nntp/lmtp2nntp_main.c      1.76 -> 1.77     2 inserted, 0 deleted

ossp-pkg/lmtp2nntp/THANKS 1.5 -> 1.6

--- THANKS       2003/01/30 19:42:12     1.5
+++ THANKS       2004/04/02 10:25:47     1.6
@@ -18,4 +18,5 @@
   Christos Ricudis      <ricudis@paiko.gr>
   Christoph Schug       <christoph.schug@cw.com>
   Daniel Tschan         <tschan@devzone.ch>
+  Amos Gouaux           <amos@utdallas.edu>
 


ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.76 -> 1.77

--- lmtp2nntp_main.c     2003/02/12 16:16:29     1.76
+++ lmtp2nntp_main.c     2004/04/02 10:25:47     1.77
@@ -321,10 +321,12 @@
                 pid = wait(NULL);
                 ctx->active_childs--;
                 logbook(ctx->l2, L2_LEVEL_NOTICE, "caught signal %d - child [%ld] terminated", sig, (long)pid);
+                signal(sig, (void(*)())catchsignal);
                 return;
             case SIGUSR1:
                 logbook(ctx->l2, L2_LEVEL_NOTICE, "caught signal %d - flush logging stream", sig);
                 l2_channel_flush(ctx->l2);
+                signal(sig, (void(*)())catchsignal);
                 return;
             case SIGHUP:
             case SIGINT:

CVSTrac 2.0.1