From 660d8a068e8535dcbba8243f76cb4843586c96fe Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 21 Dec 1998 05:44:33 +0000 Subject: like kill(1), have csh builtin handle -SIGxxx names; kleink --- bin/csh/proc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/csh/proc.c b/bin/csh/proc.c index dc9e0bb66a6..860da94c780 100644 --- a/bin/csh/proc.c +++ b/bin/csh/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.9 1998/05/17 19:13:44 deraadt Exp $ */ +/* $OpenBSD: proc.c,v 1.10 1998/12/21 05:44:32 deraadt Exp $ */ /* $NetBSD: proc.c,v 1.9 1995/04/29 23:21:33 mycroft Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)proc.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: proc.c,v 1.9 1998/05/17 19:13:44 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: proc.c,v 1.10 1998/12/21 05:44:32 deraadt Exp $"; #endif #endif /* not lint */ @@ -1021,8 +1021,10 @@ dokill(v, t) } for (signum = 1; signum < NSIG; signum++) - if (!strcasecmp(sys_signame[signum], name)) - break; + if (!strcasecmp(sys_signame[signum], name) || + (!strncasecmp("SIG", name, 3) && /* skip "SIG" prefix */ + !strcasecmp(sys_signame[signum], name + 3))) + break; if (signum == NSIG) { if (name[0] == '0') -- cgit v1.2.3