summaryrefslogtreecommitdiffstats
path: root/bin/sh/Makefile
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-12-21 22:47:34 +0000
committerjilles <jilles@FreeBSD.org>2010-12-21 22:47:34 +0000
commitae2aabc34981e0a4fc74b41bde3cfd6ff4166022 (patch)
tree571f5b4935a3ac4f69aff2b5cfb327687b1f59fe /bin/sh/Makefile
parent0a77d10ec99ee3d8cfd396b81e6fb1d1a9c4e1de (diff)
downloadFreeBSD-src-ae2aabc34981e0a4fc74b41bde3cfd6ff4166022.zip
FreeBSD-src-ae2aabc34981e0a4fc74b41bde3cfd6ff4166022.tar.gz
sh: Add kill builtin.
This allows specifying a %job (which is equivalent to the corresponding process group). Additionally, it improves reliability of kill from sh in high-load situations and ensures "kill" finds the correct utility regardless of PATH, as required by POSIX (unless the undocumented %builtin mechanism is used). Side effect: fatal errors (any error other than kill(2) failure) now return exit status 2 instead of 1. (This is consistent with other sh builtins, but not in NetBSD.) Code size increases about 1K on i386. Obtained from: NetBSD
Diffstat (limited to 'bin/sh/Makefile')
-rw-r--r--bin/sh/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index a606c9b..47642df 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -4,7 +4,7 @@
PROG= sh
INSTALLFLAGS= -S
SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \
- histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
+ histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
mystring.c options.c output.c parser.c printf.c redir.c show.c \
test.c trap.c var.c
GENSRCS= builtins.c init.c nodes.c syntax.c
@@ -26,6 +26,7 @@ WARNS?= 2
WFORMAT=0
.PATH: ${.CURDIR}/bltin \
+ ${.CURDIR}/../kill \
${.CURDIR}/../test \
${.CURDIR}/../../usr.bin/printf
OpenPOWER on IntegriCloud