From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 01:53:47 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B9D11065677 for ; Tue, 10 Aug 2010 01:53:47 +0000 (UTC) (envelope-from arundel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6EF8FC14 for ; Tue, 10 Aug 2010 01:53:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7A1rldC026438 for ; Tue, 10 Aug 2010 01:53:47 GMT (envelope-from arundel@freefall.freebsd.org) Received: (from arundel@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7A1rlJW026437 for freebsd-hackers@freebsd.org; Tue, 10 Aug 2010 01:53:47 GMT (envelope-from arundel) Date: Tue, 10 Aug 2010 01:53:47 +0000 From: Alexander Best To: freebsd-hackers@freebsd.org Message-ID: <20100810015347.GA17233@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline Subject: tiny sys/sys/signal.h cleanup X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 01:53:47 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi there, just wanted to get some feedback for this tiny patch and if people think it makes sense. cheers. alex -- a13x --vtzGhvizbBRQ85DL Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="signal.h.diff" Index: sys/sys/signal.h =================================================================== --- sys/sys/signal.h (revision 211114) +++ sys/sys/signal.h (working copy) @@ -47,6 +47,14 @@ /* * System defined signals. + * + * Unlike previous signal facilities, the handler will not be reset when caught + * and remains installed after a signal has been delivered. + * + * With the exception of the SIGKILL and SIGSTOP signals, all other signals can + * be caught, be ignored, or generate an interrupt. Any attempt to ignore or + * supply a handler for SIGKILL or SIGSTOP will fail with error EINVAL and no + * action will take place. */ #if __POSIX_VISIBLE || __XSI_VISIBLE #define SIGHUP 1 /* hangup */ @@ -55,9 +63,9 @@ #if __POSIX_VISIBLE || __XSI_VISIBLE #define SIGQUIT 3 /* quit */ #endif -#define SIGILL 4 /* illegal instr. (not reset when caught) */ +#define SIGILL 4 /* illegal instruction */ #if __XSI_VISIBLE -#define SIGTRAP 5 /* trace trap (not reset when caught) */ +#define SIGTRAP 5 /* trace trap */ #endif #define SIGABRT 6 /* abort() */ #if __BSD_VISIBLE @@ -66,7 +74,7 @@ #endif #define SIGFPE 8 /* floating point exception */ #if __POSIX_VISIBLE || __XSI_VISIBLE -#define SIGKILL 9 /* kill (cannot be caught or ignored) */ +#define SIGKILL 9 /* kill */ #endif #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #define SIGBUS 10 /* bus error */ --vtzGhvizbBRQ85DL--