sig.c (d24f017be800e31ad16d74ae3366abab383cefe0) sig.c (2764b86afdc99a30f4b1a4da2c04db8aa7aa785d)
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: sig.c,v 1.11.2.1 1998/03/08 23:44:48 brian Exp $
26 * $Id: sig.c,v 1.11.2.2 1998/04/06 09:12:36 brian Exp $
27 */
28
29#include <sys/types.h>
30
31#include <signal.h>
32
27 */
28
29#include <sys/types.h>
30
31#include <signal.h>
32
33#include "command.h"
34#include "log.h"
35#include "sig.h"
36
37static int caused[NSIG]; /* An array of pending signals */
38static sig_type handler[NSIG]; /* all start at SIG_DFL */
39
40
41/* Record a signal in the "caused" array */

--- 55 unchanged lines hidden ---
33#include "log.h"
34#include "sig.h"
35
36static int caused[NSIG]; /* An array of pending signals */
37static sig_type handler[NSIG]; /* all start at SIG_DFL */
38
39
40/* Record a signal in the "caused" array */

--- 55 unchanged lines hidden ---