Don't assume sigset_t and int are equivalent.

This commit is contained in:
James Raynard 1998-02-28 16:02:24 +00:00
parent 73d8529af3
commit 09831267df
2 changed files with 6 additions and 4 deletions

View File

@ -29,7 +29,7 @@
*
* BSDI doscmd.c,v 2.3 1996/04/08 19:32:30 bostic Exp
*
* $Id: doscmd.c,v 1.2 1997/08/15 23:41:23 jlemon Exp $
* $Id: doscmd.c,v 1.3 1997/09/30 22:03:40 jlemon Exp $
*/
#include <sys/types.h>
@ -257,7 +257,7 @@ main(int argc, char **argv)
N_PUTVEC(R_CS, R_IP, video_vector);
}
sc.sc_mask = 0;
sigemptyset(&sc.sc_mask);
sc.sc_onstack = 0;
if (tmode)

View File

@ -29,7 +29,7 @@
*
* BSDI signal.c,v 2.2 1996/04/08 19:33:06 bostic Exp
*
* $Id: signal.c,v 1.5 1997/03/18 02:36:56 msmith Exp $
* $Id: signal.c,v 1.1 1997/08/09 01:42:55 dyson Exp $
*/
#include "doscmd.h"
@ -104,7 +104,9 @@ setsignal(int s, void (*h)(struct sigframe *))
handler[s] = h;
sa.sa_handler = (__sighandler_t *)generichandler;
sa.sa_mask = sigmask(SIGIO) | sigmask(SIGALRM);
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGIO);
sigaddset(&sa.sa_mask, SIGALRM);
sa.sa_flags = SA_ONSTACK;
sigaction(s, &sa, NULL);