diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-07-18 16:18:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-07-18 16:18:18 +0000 |
commit | b2565581359813dd4206d3b74f25f889a85f3ced (patch) | |
tree | a52af780bb233668ba07f06f328f5b1fa2facd35 /usr.bin/m4/misc.c | |
parent | e59b173c2c5bdeb1a77d05d41d290543ea674892 (diff) |
Kill signal race. Reviewed by jjbg@
Diffstat (limited to 'usr.bin/m4/misc.c')
-rw-r--r-- | usr.bin/m4/misc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index ca9ce89b884..318b79987e4 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.20 2000/07/27 17:44:33 espie Exp $ */ +/* $OpenBSD: misc.c,v 1.21 2001/07/18 16:18:17 espie Exp $ */ /* $NetBSD: misc.c,v 1.6 1995/09/28 05:37:41 tls Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: misc.c,v 1.20 2000/07/27 17:44:33 espie Exp $"; +static char rcsid[] = "$OpenBSD: misc.c,v 1.21 2001/07/18 16:18:17 espie Exp $"; #endif #endif /* not lint */ @@ -243,7 +243,9 @@ void onintr(signo) int signo; { - errx(1, "interrupted."); +#define intrmessage "m4: interrupted.\n" + write(STDERR_FILENO, intrmessage, sizeof(intrmessage)); + _exit(1); } /* |