From owner-cvs-src-old@FreeBSD.ORG Sun Nov 22 18:23:42 2009 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 5A43A1065703 for ; Sun, 22 Nov 2009 18:23:42 +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 47D838FC08 for ; Sun, 22 Nov 2009 18:23:42 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nAMINgd1035449 for ; Sun, 22 Nov 2009 18:23:42 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAMINgLS035448 for cvs-src-old@freebsd.org; Sun, 22 Nov 2009 18:23:42 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <200911221823.nAMINgLS035448@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 22 Nov 2009 18:23:30 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh error.c error.h eval.c parser.c redir.c var.c 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: Sun, 22 Nov 2009 18:23:42 -0000 jilles 2009-11-22 18:23:30 UTC FreeBSD src repository Modified files: bin/sh error.c error.h eval.c parser.c redir.c var.c Log: SVN rev 199660 on 2009-11-22 18:23:30Z by jilles Fix various things about SIGINT handling: * exception handlers are now run with interrupts disabled, which avoids many race conditions * fix some cases where SIGINT only aborts one command and continues the script, in particular if a SIGINT causes an EINTR error which trumped the interrupt. Example: sh -c 'echo < /some/fifo; echo This should not be printed' The fifo should not have writers. When pressing ctrl+c to abort the open, the shell used to continue with the next command. Example: sh -c '/bin/echo < /some/fifo; echo This should not be printed' Similar. Note, however, that this particular case did not and does not work in interactive mode with job control enabled. Revision Changes Path 1.27 +13 -2 src/bin/sh/error.c 1.18 +2 -0 src/bin/sh/error.h 1.69 +1 -1 src/bin/sh/eval.c 1.68 +1 -1 src/bin/sh/parser.c 1.28 +5 -2 src/bin/sh/redir.c 1.40 +3 -0 src/bin/sh/var.c