diff options
author | jilles <jilles@FreeBSD.org> | 2010-12-21 22:47:34 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-12-21 22:47:34 +0000 |
commit | ae2aabc34981e0a4fc74b41bde3cfd6ff4166022 (patch) | |
tree | 571f5b4935a3ac4f69aff2b5cfb327687b1f59fe /share | |
parent | 0a77d10ec99ee3d8cfd396b81e6fb1d1a9c4e1de (diff) | |
download | FreeBSD-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 'share')
-rw-r--r-- | share/man/man1/builtin.1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man1/builtin.1 b/share/man/man1/builtin.1 index 5a6b5ae..72b016b 100644 --- a/share/man/man1/builtin.1 +++ b/share/man/man1/builtin.1 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 19, 2010 +.Dd December 21, 2010 .Dt BUILTIN 1 .Os .Sh NAME @@ -251,7 +251,7 @@ but are implemented as scripts using a builtin command of the same name. .It Ic if Ta \&No Ta Yes Ta Yes .It Ic jobid Ta \&No Ta \&No Ta Yes .It Ic jobs Ta No** Ta Yes Ta Yes -.It Ic kill Ta Yes Ta Yes Ta \&No +.It Ic kill Ta Yes Ta Yes Ta Yes .It Ic limit Ta \&No Ta Yes Ta \&No .It Ic local Ta \&No Ta \&No Ta Yes .It Ic log Ta \&No Ta Yes Ta \&No |