should use sigmask
authorJim Bloom <bloom@ucbvax.Berkeley.EDU>
Fri, 7 Jun 1985 13:19:49 +0000 (05:19 -0800)
committerJim Bloom <bloom@ucbvax.Berkeley.EDU>
Fri, 7 Jun 1985 13:19:49 +0000 (05:19 -0800)
SCCS-vsn: libexec/comsat/comsat.c 5.2

usr/src/libexec/comsat/comsat.c

index c9184c1..92cbf18 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)comsat.c   5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)comsat.c   5.2 (Berkeley) %G%";
 #endif not lint
 
 #include <sys/types.h>
 #endif not lint
 
 #include <sys/types.h>
@@ -91,7 +91,7 @@ main(argc, argv)
                        errno = 0;
                        continue;
                }
                        errno = 0;
                        continue;
                }
-               sigblock(1<<SIGALRM);
+               sigblock(sigmask(SIGALRM));
                msgbuf[cc] = 0;
                lastmsgtime = time(0);
                mailfor(msgbuf);
                msgbuf[cc] = 0;
                lastmsgtime = time(0);
                mailfor(msgbuf);