Date: Mon, 5 Jun 2000 21:48:31 +0200 From: Martin Cracauer <cracauer@cons.org> To: "Andrey A. Chernov" <ache@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/bin/ls ls.c Message-ID: <20000605214831.B76420@cons.org> In-Reply-To: <200006051936.MAA81719@freefall.freebsd.org>; from ache@FreeBSD.ORG on Mon, Jun 05, 2000 at 12:36:06PM -0700 References: <200006051936.MAA81719@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <cracauer@cons.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000605214831.B76420>