Date: Tue, 10 Aug 2010 01:53:47 +0000 From: Alexander Best <arundel@freebsd.org> To: freebsd-hackers@freebsd.org Subject: tiny sys/sys/signal.h cleanup Message-ID: <20100810015347.GA17233@freebsd.org>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100810015347.GA17233>