From owner-cvs-src-old@FreeBSD.ORG Tue Dec 21 22:49:16 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C23B106566B for ; Tue, 21 Dec 2010 22:49:16 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 185EC8FC16 for ; Tue, 21 Dec 2010 22:49:16 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oBLMnFCl088959 for ; Tue, 21 Dec 2010 22:49:15 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBLMnFx7088958 for cvs-src-old@freebsd.org; Tue, 21 Dec 2010 22:49:15 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201012212249.oBLMnFx7088958@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 21 Dec 2010 22:47:34 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/kill kill.1 kill.c src/bin/sh Makefile builtins.def jobs.c sh.1 src/bin/sh/bltin bltin.h src/share/man/man1 builtin.1 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 22:49:16 -0000 jilles 2010-12-21 22:47:34 UTC FreeBSD src repository Modified files: bin/kill kill.1 kill.c bin/sh Makefile builtins.def jobs.c sh.1 bin/sh/bltin bltin.h share/man/man1 builtin.1 Log: SVN rev 216629 on 2010-12-21 22:47:34Z by jilles 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 Revision Changes Path 1.22 +1 -0 src/bin/kill/kill.1 1.23 +32 -11 src/bin/kill/kill.c 1.55 +2 -1 src/bin/sh/Makefile 1.18 +5 -0 src/bin/sh/bltin/bltin.h 1.21 +1 -0 src/bin/sh/builtins.def 1.89 +8 -0 src/bin/sh/jobs.c 1.153 +6 -1 src/bin/sh/sh.1 1.35 +2 -2 src/share/man/man1/builtin.1