From owner-cvs-all Mon Jun 5 12:48:44 2000 Delivered-To: cvs-all@freebsd.org Received: from gilgamesch.bik-gmbh.de (T1-Hansenet.BIK-GmbH.de [192.76.134.246]) by hub.freebsd.org (Postfix) with ESMTP id 5E41A37BD68; Mon, 5 Jun 2000 12:48:32 -0700 (PDT) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.9.3/8.7.3) id VAA78028; Mon, 5 Jun 2000 21:48:31 +0200 (MET DST) Date: Mon, 5 Jun 2000 21:48:31 +0200 From: Martin Cracauer To: "Andrey A. Chernov" Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/bin/ls ls.c Message-ID: <20000605214831.B76420@cons.org> References: <200006051936.MAA81719@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006051936.MAA81719@freefall.freebsd.org>; from ache@FreeBSD.ORG on Mon, Jun 05, 2000 at 12:36:06PM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In <200006051936.MAA81719@freefall.freebsd.org>, Andrey A. Chernov wrote: > Add ^C reaction set You must not exit() out of a signal handler that terminates the program, otherwise the caller of ls will not known whether to continue with the next command in a running script or to abort the script. You have to reset the signal and kill yourself to return the proper exit status to the parent so that WIFSIGNALED(status) == true. You cannot fake that by a numeric exit value. See also fixes to sh, make, truss, time in the same line. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message