]> git.ozlabs.org Git - ppp.git/commitdiff
block SIGPOLL to fix hanging on startup bug.
authorPaul Mackerras <paulus@samba.org>
Mon, 10 Jan 1994 00:18:59 +0000 (00:18 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 10 Jan 1994 00:18:59 +0000 (00:18 +0000)
pppd/main.c

index 7de1d1374832dfb72915d3d0ea023fd70d7da5d6..3172485a23e77d025cfc9c18cdf972a44c3d4910 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: main.c,v 1.4 1993/12/15 00:17:43 paulus Exp $";
+static char rcsid[] = "$Id: main.c,v 1.5 1994/01/10 00:18:59 paulus Exp $";
 #endif
 
 #define SETSID
@@ -339,7 +339,16 @@ main(argc, argv)
 
     signal(SIGUSR1, incdebug);         /* Increment debug flag */
     signal(SIGUSR2, nodebug);          /* Reset debug flag */
-  
+
+    /*
+     * Block SIGIOs and SIGPOLLs for now
+     */
+    sigemptyset(&mask);
+    sigaddset(&mask, SIGIO);
+#ifdef STREAMS
+    sigaddset(&mask, SIGPOLL);
+#endif
+    sigprocmask(SIG_BLOCK, &mask, NULL);
 
     /*
      * Open the serial device and set it up to be the ppp interface.