Deleted Added
full compact
sig.c (8870) sig.c (26926)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 107 unchanged lines hidden (view full) ---

116 ALLSIGS
117#undef _DO
118 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
119
120#define SIGSIZE (sizeof(sighdl) / sizeof(sighdl[0]) * sizeof(sig_t))
121
122 el->el_signal = (sig_t *) el_malloc(SIGSIZE);
123 for (i = 0; sighdl[i] != -1; i++)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 107 unchanged lines hidden (view full) ---

116 ALLSIGS
117#undef _DO
118 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
119
120#define SIGSIZE (sizeof(sighdl) / sizeof(sighdl[0]) * sizeof(sig_t))
121
122 el->el_signal = (sig_t *) el_malloc(SIGSIZE);
123 for (i = 0; sighdl[i] != -1; i++)
124 el->el_signal[i] = BADSIG;
124 el->el_signal[i] = SIG_ERR;
125
126 (void) sigprocmask(SIG_SETMASK, &oset, NULL);
127
128 return 0;
129}
130
131
132/* sig_end():

--- 47 unchanged lines hidden (view full) ---

180
181 (void) sigemptyset(&nset);
182#define _DO(a) (void) sigaddset(&nset, SIGWINCH);
183 ALLSIGS
184#undef _DO
185 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
186
187 for (i = 0; sighdl[i] != -1; i++)
125
126 (void) sigprocmask(SIG_SETMASK, &oset, NULL);
127
128 return 0;
129}
130
131
132/* sig_end():

--- 47 unchanged lines hidden (view full) ---

180
181 (void) sigemptyset(&nset);
182#define _DO(a) (void) sigaddset(&nset, SIGWINCH);
183 ALLSIGS
184#undef _DO
185 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
186
187 for (i = 0; sighdl[i] != -1; i++)
188 if (el->el_signal[i] != BADSIG)
188 if (el->el_signal[i] != SIG_ERR)
189 (void) signal(sighdl[i], el->el_signal[i]);
190
191 sel = NULL; /* we are going to die if the handler is called */
192 (void) sigprocmask(SIG_SETMASK, &oset, NULL);
193}
189 (void) signal(sighdl[i], el->el_signal[i]);
190
191 sel = NULL; /* we are going to die if the handler is called */
192 (void) sigprocmask(SIG_SETMASK, &oset, NULL);
193}