summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-12-21 05:44:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-12-21 05:44:33 +0000
commit660d8a068e8535dcbba8243f76cb4843586c96fe (patch)
tree4e9624764e80709f1d0a79f027b266dbbba01734
parentc6eb82469de9e5f0a4f4a50b7af90b1b69c13b5e (diff)
like kill(1), have csh builtin handle -SIGxxx names; kleink
-rw-r--r--bin/csh/proc.c10
1 files 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')