OSDN Git Service

(split) LDP_man-pages: update original to v3.34.
[linuxjm/LDP_man-pages.git] / original / man2 / sigaction.2
1 '\" t
2 .\" Copyright (c) 1994,1995 Mike Battersby <mib@deakin.edu.au>
3 .\" and Copyright 2004, 2005 Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" based on work by faith@cs.unc.edu
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .\" Modified, aeb, 960424
27 .\" Modified Fri Jan 31 17:31:20 1997 by Eric S. Raymond <esr@thyrsus.com>
28 .\" Modified Thu Nov 26 02:12:45 1998 by aeb - add SIGCHLD stuff.
29 .\" Modified Sat May  8 17:40:19 1999 by Matthew Wilcox
30 .\"     add POSIX.1b signals
31 .\" Modified Sat Dec 29 01:44:52 2001 by Evan Jones <ejones@uwaterloo.ca>
32 .\"     SA_ONSTACK
33 .\" Modified 2004-11-11 by Michael Kerrisk <mtk.manpages@gmail.com>
34 .\"     Added mention of SIGCONT under SA_NOCLDSTOP
35 .\"     Added SA_NOCLDWAIT
36 .\" Modified 2004-11-17 by Michael Kerrisk <mtk.manpages@gmail.com>
37 .\"     Updated discussion for POSIX.1-2001 and SIGCHLD and sa_flags.
38 .\"     Formatting fixes
39 .\" 2004-12-09, mtk, added SI_TKILL + other minor changes
40 .\" 2005-09-15, mtk, split sigpending(), sigprocmask(), sigsuspend()
41 .\"     out of this page into separate pages.
42 .\" 2010-06-11 Andi Kleen, add hwpoison signal extensions
43 .\" 2010-06-11 mtk, improvements to discussion of various siginfo_t fields.
44 .\"
45 .TH SIGACTION 2 2011-09-08 "Linux" "Linux Programmer's Manual"
46 .SH NAME
47 sigaction \- examine and change a signal action
48 .SH SYNOPSIS
49 .nf
50 .B #include <signal.h>
51 .sp
52 .BI "int sigaction(int " signum ", const struct sigaction *" act ,
53 .BI "              struct sigaction *" oldact );
54 .fi
55 .sp
56 .in -4n
57 Feature Test Macro Requirements for glibc (see
58 .BR feature_test_macros (7)):
59 .in
60 .sp
61 .ad l
62 .BR sigaction ():
63 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
64 .ad b
65 .SH DESCRIPTION
66 The
67 .BR sigaction ()
68 system call is used to change the action taken by a process on
69 receipt of a specific signal.
70 (See
71 .BR signal (7)
72 for an overview of signals.)
73 .PP
74 .I signum
75 specifies the signal and can be any valid signal except
76 .B SIGKILL
77 and
78 .BR SIGSTOP .
79 .PP
80 If
81 .I act
82 is non-NULL, the new action for signal
83 .I signum
84 is installed from
85 .IR act .
86 If
87 .I oldact
88 is non-NULL, the previous action is saved in
89 .IR oldact .
90 .PP
91 The
92 .I sigaction
93 structure is defined as something like:
94 .sp
95 .in +4n
96 .nf
97 struct sigaction {
98     void     (*sa_handler)(int);
99     void     (*sa_sigaction)(int, siginfo_t *, void *);
100     sigset_t   sa_mask;
101     int        sa_flags;
102     void     (*sa_restorer)(void);
103 };
104 .fi
105 .in
106 .PP
107 On some architectures a union is involved: do not assign to both
108 .I sa_handler
109 and
110 .IR sa_sigaction .
111 .PP
112 The
113 .I sa_restorer
114 element is obsolete and should not be used.
115 POSIX does not specify a
116 .I sa_restorer
117 element.
118 .PP
119 .I sa_handler
120 specifies the action to be associated with
121 .I signum
122 and may be
123 .B SIG_DFL
124 for the default action,
125 .B SIG_IGN
126 to ignore this signal, or a pointer to a signal handling function.
127 This function receives the signal number as its only argument.
128 .PP
129 If
130 .B SA_SIGINFO
131 is specified in
132 .IR sa_flags ,
133 then
134 .I sa_sigaction
135 (instead of
136 .IR sa_handler )
137 specifies the signal-handling function for
138 .IR signum .
139 This function receives the signal number as its first argument, a
140 pointer to a
141 .I siginfo_t
142 as its second argument and a pointer to a
143 .I ucontext_t
144 (cast to \fIvoid\ *\fP) as its third argument.
145 (Commonly, the handler function doesn't make any use of the third argument.
146 See
147 .BR getcontext (2)
148 for further information about
149 .IR ucontext_t .)
150 .PP
151 .I sa_mask
152 specifies a mask of signals which should be blocked
153 (i.e., added to the signal mask of the thread in which
154 the signal handler is invoked)
155 during execution of the signal handler.
156 In addition, the signal which triggered the handler
157 will be blocked, unless the
158 .B SA_NODEFER
159 flag is used.
160 .PP
161 .I sa_flags
162 specifies a set of flags which modify the behavior of the signal.
163 It is formed by the bitwise OR of zero or more of the following:
164 .RS 4
165 .TP
166 .B SA_NOCLDSTOP
167 If
168 .I signum
169 is
170 .BR SIGCHLD ,
171 do not receive notification when child processes stop (i.e., when they
172 receive one of
173 .BR SIGSTOP ", " SIGTSTP ", " SIGTTIN
174 or
175 .BR SIGTTOU )
176 or resume (i.e., they receive
177 .BR SIGCONT )
178 (see
179 .BR wait (2)).
180 This flag is only meaningful when establishing a handler for
181 .BR SIGCHLD .
182 .TP
183 .BR SA_NOCLDWAIT " (since Linux 2.6)"
184 .\" To be precise: Linux 2.5.60 -- MTK
185 If
186 .I signum
187 is
188 .BR SIGCHLD ,
189 do not transform children into zombies when they terminate.
190 See also
191 .BR waitpid (2).
192 This flag is only meaningful when establishing a handler for
193 .BR SIGCHLD ,
194 or when setting that signal's disposition to
195 .BR SIG_DFL .
196
197 If the
198 .B SA_NOCLDWAIT
199 flag is set when establishing a handler for
200 .BR SIGCHLD ,
201 POSIX.1 leaves it unspecified whether a
202 .B SIGCHLD
203 signal is generated when a child process terminates.
204 On Linux, a
205 .B SIGCHLD
206 signal is generated in this case;
207 on some other implementations, it is not.
208 .TP
209 .B SA_NODEFER
210 Do not prevent the signal from being received from within its own signal
211 handler.
212 This flag is only meaningful when establishing a signal handler.
213 .B SA_NOMASK
214 is an obsolete, nonstandard synonym for this flag.
215 .TP
216 .B SA_ONSTACK
217 Call the signal handler on an alternate signal stack provided by
218 .BR sigaltstack (2).
219 If an alternate stack is not available, the default stack will be used.
220 This flag is only meaningful when establishing a signal handler.
221 .TP
222 .BR SA_RESETHAND
223 Restore the signal action to the default state once the signal handler
224 has been called.
225 This flag is only meaningful when establishing a signal handler.
226 .B SA_ONESHOT
227 is an obsolete, nonstandard synonym for this flag.
228 .TP
229 .B SA_RESTART
230 Provide behavior compatible with BSD signal semantics by making certain
231 system calls restartable across signals.
232 This flag is only meaningful when establishing a signal handler.
233 See
234 .BR signal (7)
235 for a discussion of system call restarting.
236 .TP
237 .BR SA_SIGINFO " (since Linux 2.2)"
238 The signal handler takes 3 arguments, not one.
239 In this case,
240 .I sa_sigaction
241 should be set instead of
242 .IR sa_handler .
243 This flag is only meaningful when establishing a signal handler.
244 .\" (The
245 .\" .I sa_sigaction
246 .\" field was added in Linux 2.1.86.)
247 .RE
248 .PP
249 The
250 .I siginfo_t
251 argument to
252 .I sa_sigaction
253 is a struct with the following elements:
254 .sp
255 .in +4n
256 .nf
257 siginfo_t {
258     int      si_signo;    /* Signal number */
259     int      si_errno;    /* An errno value */
260     int      si_code;     /* Signal code */
261     int      si_trapno;   /* Trap number that caused
262                              hardware-generated signal
263                              (unused on most architectures) */
264 .\" FIXME
265 .\" si_trapno seems to be only used on SPARC and Alpha;
266 .\" this page could use a little more detail on its purpose there.
267     pid_t    si_pid;      /* Sending process ID */
268     uid_t    si_uid;      /* Real user ID of sending process */
269     int      si_status;   /* Exit value or signal */
270     clock_t  si_utime;    /* User time consumed */
271     clock_t  si_stime;    /* System time consumed */
272     sigval_t si_value;    /* Signal value */
273     int      si_int;      /* POSIX.1b signal */
274     void    *si_ptr;      /* POSIX.1b signal */
275     int      si_overrun;  /* Timer overrun count; POSIX.1b timers */
276     int      si_timerid;  /* Timer ID; POSIX.1b timers */
277 .\" In the kernel: si_tid
278     void    *si_addr;     /* Memory location which caused fault */
279     long     si_band;     /* Band event (was \fIint\fP in
280                              glibc 2.3.2 and earlier) */
281     int      si_fd;       /* File descriptor */
282     short    si_addr_lsb; /* Least significant bit of address
283                              (since kernel 2.6.32) */
284 }
285 .fi
286 .in
287
288 .IR si_signo ", " si_errno " and " si_code
289 are defined for all signals.
290 .RI ( si_errno
291 is generally unused on Linux.)
292 The rest of the struct may be a union, so that one should only
293 read the fields that are meaningful for the given signal:
294 .IP * 2
295 Signals sent with
296 .BR kill (2)
297 and
298 .BR sigqueue (3)
299 fill in
300 .IR si_pid " and " si_uid .
301 In addition, signals sent with
302 .BR sigqueue (3)
303 fill in
304 .IR si_int " and " si_ptr
305 with the values specified by the sender of the signal;
306 see
307 .BR sigqueue (3)
308 for more details.
309 .IP *
310 Signals sent by POSIX.1b timers (since Linux 2.6) fill in
311 .I si_overrun
312 and
313 .IR si_timerid .
314 The
315 .I si_timerid
316 field is an internal ID used by the kernel to identify
317 the timer; it is not the same as the timer ID returned by
318 .BR timer_create (2).
319 The
320 .I si_overrun
321 field is the timer overrun count;
322 this is the same information as is obtained by a call to
323 .BR timer_getoverrun (2).
324 These fields are nonstandard Linux extensions.
325 .IP *
326 Signals sent for message queue notification (see the description of
327 .B SIGEV_SIGNAL
328 in
329 .BR mq_notify (3))
330 fill in
331 .IR si_int / si_ptr ,
332 with the
333 .I sigev_value
334 supplied to
335 .BR mq_notify (3);
336 .IR si_pid ,
337 with the process ID of the message sender; and
338 .IR si_uid ,
339 with the real user ID of the message sender.
340 .IP *
341 .B SIGCHLD
342 fills in
343 .IR si_pid ", " si_uid ", " si_status ", " si_utime " and " si_stime ,
344 providing information about the child.
345 The
346 .I si_pid
347 field is the process ID of the child;
348 .I si_uid
349 is the child's real user ID.
350 The
351 .I si_status
352 field contains the exit status of the child (if
353 .I si_code
354 is
355 .BR CLD_EXITED ),
356 or the signal number that caused the process to change state.
357 The
358 .I si_utime
359 and
360 .I si_stime
361 contain the user and system CPU time used by the child process;
362 these fields do not include the times used by waited-for children (unlike
363 .BR getrusage (2)
364 and
365 .BR time (2)).
366 In kernels up to 2.6, and since 2.6.27, these fields report
367 CPU time in units of
368 .IR sysconf(_SC_CLK_TCK) .
369 In 2.6 kernels before 2.6.27,
370 a bug meant that these fields reported time in units
371 of the (configurable) system jiffy (see
372 .BR time (7)).
373 .\" FIXME .
374 .\" When si_utime and si_stime where originally implemented, the
375 .\" measurement unit was HZ, which was the same as clock ticks
376 .\" (sysconf(_SC_CLK_TCK)).  In 2.6, HZ became configurable, and
377 .\" was *still* used as the unit to return the info these fields,
378 .\" with the result that the field values depended on the the
379 .\" configured HZ.  Of course, the should have been measured in
380 .\" USER_HZ instead, so that sysconf(_SC_CLK_TCK) could be used to
381 .\" convert to seconds.  I have a queued patch to fix this:
382 .\" http://thread.gmane.org/gmane.linux.kernel/698061/ .
383 .\" This patch made it into 2.6.27.
384 .\" But note that these fields still don't return the times of
385 .\" waited-for children (as is done by getrusage() and times()
386 .\" and wait4()).  Solaris 8 does include child times.
387 .IP *
388 .BR SIGILL ,
389 .BR SIGFPE ,
390 .BR SIGSEGV ,
391 .BR SIGBUS ,
392 and
393 .BR SIGTRAP
394 fill in
395 .I si_addr
396 with the address of the fault.
397 .\" FIXME SIGTRAP also sets the following for ptrace_notify() ?
398 .\"     info.si_code = exit_code;
399 .\"     info.si_pid = task_pid_vnr(current);
400 .\"     info.si_uid = current_uid();  /* Real UID */
401 On some architectures,
402 these signals also fill in the
403 .I si_trapno
404 filed.
405 Some suberrors of
406 .BR SIGBUS ,
407 in particular
408 .B BUS_MCEERR_AO
409 and
410 .BR BUS_MCEERR_AR ,
411 also fill in
412 .IR si_addr_lsb .
413 This field indicates the least significant bit of the reported address
414 and therefore the extent of the corruption.
415 For example, if a full page was corrupted,
416 .I si_addr_lsb
417 contains
418 .IR log2(sysconf(_SC_PAGESIZE)) .
419 .B BUS_MCERR_*
420 and
421 .I si_addr_lsb
422 are Linux-specific extensions.
423 .IP *
424 .BR SIGPOLL / SIGIO
425 fills in
426 .IR si_band " and " si_fd .
427 The
428 .I si_band
429 event is a bit mask containing the same values as are filled in the
430 .I revents
431 field by
432 .BR poll (2).
433 The
434 .I si_fd
435 field indicates the file descriptor for which the I/O event occurred.
436 .PP
437 .I si_code
438 is a value (not a bit mask)
439 indicating why this signal was sent.
440 The following list shows the values which can be placed in
441 .I si_code
442 for any signal, along with reason that the signal was generated.
443 .RS 4
444 .TP 15
445 .B SI_USER
446 .BR kill (2)
447 or
448 .BR raise (3)
449 .TP
450 .B SI_KERNEL
451 Sent by the kernel.
452 .TP
453 .B SI_QUEUE
454 .BR sigqueue (3)
455 .TP
456 .B SI_TIMER
457 POSIX timer expired
458 .TP
459 .B SI_MESGQ
460 POSIX message queue state changed (since Linux 2.6.6); see
461 .BR mq_notify (3)
462 .TP
463 .B SI_ASYNCIO
464 AIO completed
465 .TP
466 .B SI_SIGIO
467 queued SIGIO
468 .TP
469 .B SI_TKILL
470 .BR tkill (2)
471 or
472 .BR tgkill (2)
473 (since Linux 2.4.19)
474 .\" SI_DETHREAD is defined in 2.6.9 sources, but isn't implemented
475 .\" It appears to have been an idea that was tried during 2.5.6
476 .\" through to 2.5.24 and then was backed out.
477 .RE
478 .PP
479 The following values can be placed in
480 .I si_code
481 for a
482 .B SIGILL
483 signal:
484 .RS 4
485 .TP 15
486 .B ILL_ILLOPC
487 illegal opcode
488 .TP
489 .B ILL_ILLOPN
490 illegal operand
491 .TP
492 .B ILL_ILLADR
493 illegal addressing mode
494 .TP
495 .B ILL_ILLTRP
496 illegal trap
497 .TP
498 .B ILL_PRVOPC
499 privileged opcode
500 .TP
501 .B ILL_PRVREG
502 privileged register
503 .TP
504 .B ILL_COPROC
505 coprocessor error
506 .TP
507 .B ILL_BADSTK
508 internal stack error
509 .RE
510 .PP
511 The following values can be placed in
512 .I si_code
513 for a
514 .B SIGFPE
515 signal:
516 .RS 4
517 .TP 15
518 .B FPE_INTDIV
519 integer divide by zero
520 .TP
521 .B FPE_INTOVF
522 integer overflow
523 .TP
524 .B FPE_FLTDIV
525 floating-point divide by zero
526 .TP
527 .B FPE_FLTOVF
528 floating-point overflow
529 .TP
530 .B FPE_FLTUND
531 floating-point underflow
532 .TP
533 .B FPE_FLTRES
534 floating-point inexact result
535 .TP
536 .B FPE_FLTINV
537 floating-point invalid operation
538 .TP
539 .B FPE_FLTSUB
540 subscript out of range
541 .RE
542 .PP
543 The following values can be placed in
544 .I si_code
545 for a
546 .B SIGSEGV
547 signal:
548 .RS 4
549 .TP 15
550 .B SEGV_MAPERR
551 address not mapped to object
552 .TP
553 .B SEGV_ACCERR
554 invalid permissions for mapped object
555 .RE
556 .PP
557 The following values can be placed in
558 .I si_code
559 for a
560 .B SIGBUS
561 signal:
562 .RS 4
563 .TP 15
564 .B BUS_ADRALN
565 invalid address alignment
566 .TP
567 .B BUS_ADRERR
568 nonexistent physical address
569 .TP
570 .B BUS_OBJERR
571 object-specific hardware error
572 .TP
573 .BR BUS_MCEERR_AR " (since Linux 2.6.32)"
574 Hardware memory error consumed on a machine check; action required.
575 .TP
576 .BR BUS_MCEERR_AO " (since Linux 2.6.32)"
577 Hardware memory error detected in process but not consumed; action optional.
578 .RE
579 .PP
580 The following values can be placed in
581 .I si_code
582 for a
583 .B SIGTRAP
584 signal:
585 .RS 4
586 .TP 15
587 .B TRAP_BRKPT
588 process breakpoint
589 .TP
590 .B TRAP_TRACE
591 process trace trap
592 .TP
593 .BR TRAP_BRANCH " (since Linux 2.4)"
594 process taken branch trap
595 .TP
596 .BR TRAP_HWBKPT " (since Linux 2.4)"
597 hardware breakpoint/watchpoint
598 .RE
599 .PP
600 The following values can be placed in
601 .I si_code
602 for a
603 .B SIGCHLD
604 signal:
605 .RS 4
606 .TP 15
607 .B CLD_EXITED
608 child has exited
609 .TP
610 .B CLD_KILLED
611 child was killed
612 .TP
613 .B CLD_DUMPED
614 child terminated abnormally
615 .TP
616 .B CLD_TRAPPED
617 traced child has trapped
618 .TP
619 .B CLD_STOPPED
620 child has stopped
621 .TP
622 .B CLD_CONTINUED
623 stopped child has continued (since Linux 2.6.9)
624 .RE
625 .PP
626 The following values can be placed in
627 .I si_code
628 for a
629 .B SIGPOLL
630 signal:
631 .RS 4
632 .TP 15
633 .B POLL_IN
634 data input available
635 .TP
636 .B POLL_OUT
637 output buffers available
638 .TP
639 .B POLL_MSG
640 input message available
641 .TP
642 .B POLL_ERR
643 I/O error
644 .TP
645 .B POLL_PRI
646 high priority input available
647 .TP
648 .B POLL_HUP
649 device disconnected
650 .RE
651 .SH "RETURN VALUE"
652 .BR sigaction ()
653 returns 0 on success and \-1 on error.
654 .SH ERRORS
655 .TP
656 .B EFAULT
657 .IR act " or " oldact
658 points to memory which is not a valid part of the process address space.
659 .TP
660 .B EINVAL
661 An invalid signal was specified.
662 This will also be generated if an attempt
663 is made to change the action for
664 .BR SIGKILL " or " SIGSTOP ", "
665 which cannot be caught or ignored.
666 .SH "CONFORMING TO"
667 POSIX.1-2001, SVr4.
668 .\" SVr4 does not document the EINTR condition.
669 .SH NOTES
670 A child created via
671 .BR fork (2)
672 inherits a copy of its parent's signal dispositions.
673 During an
674 .BR execve (2),
675 the dispositions of handled signals are reset to the default;
676 the dispositions of ignored signals are left unchanged.
677
678 According to POSIX, the behavior of a process is undefined after it
679 ignores a
680 .BR SIGFPE ,
681 .BR SIGILL ,
682 or
683 .B SIGSEGV
684 signal that was not generated by
685 .BR kill (2)
686 or
687 .BR raise (3).
688 Integer division by zero has undefined result.
689 On some architectures it will generate a
690 .B SIGFPE
691 signal.
692 (Also dividing the most negative integer by \-1 may generate
693 .BR SIGFPE .)
694 Ignoring this signal might lead to an endless loop.
695 .PP
696 POSIX.1-1990 disallowed setting the action for
697 .B SIGCHLD
698 to
699 .BR SIG_IGN .
700 POSIX.1-2001 allows this possibility, so that ignoring
701 .B SIGCHLD
702 can be used to prevent the creation of zombies (see
703 .BR wait (2)).
704 Nevertheless, the historical BSD and System V behaviors for ignoring
705 .B SIGCHLD
706 differ, so that the only completely portable method of ensuring that
707 terminated children do not become zombies is to catch the
708 .B SIGCHLD
709 signal and perform a
710 .BR wait (2)
711 or similar.
712 .PP
713 POSIX.1-1990 only specified
714 .BR SA_NOCLDSTOP .
715 POSIX.1-2001 added
716 .BR SA_NOCLDWAIT ,
717 .BR SA_RESETHAND ,
718 .BR SA_NODEFER ,
719 and
720 .BR SA_SIGINFO .
721 Use of these latter values in
722 .I sa_flags
723 may be less portable in applications intended for older
724 UNIX implementations.
725 .PP
726 The
727 .B SA_RESETHAND
728 flag is compatible with the SVr4 flag of the same name.
729 .PP
730 The
731 .B SA_NODEFER
732 flag is compatible with the SVr4 flag of the same name under kernels
733 1.3.9 and newer.
734 On older kernels the Linux implementation
735 allowed the receipt of any signal, not just the one we are installing
736 (effectively overriding any
737 .I sa_mask
738 settings).
739 .PP
740 .BR sigaction ()
741 can be called with a NULL second argument to query the current signal
742 handler.
743 It can also be used to check whether a given signal is valid for
744 the current machine by calling it with NULL second and third arguments.
745 .PP
746 It is not possible to block
747 .BR SIGKILL " or " SIGSTOP
748 (by specifying them in
749 .IR sa_mask ).
750 Attempts to do so are silently ignored.
751 .PP
752 See
753 .BR sigsetops (3)
754 for details on manipulating signal sets.
755 .PP
756 See
757 .BR signal (7)
758 for a list of the async-signal-safe functions that can be
759 safely called inside from inside a signal handler.
760 .SS Undocumented
761 Before the introduction of
762 .B SA_SIGINFO
763 it was also possible to get some additional information,
764 namely by using a
765 .I sa_handler
766 with second argument of type
767 .IR "struct sigcontext".
768 See the relevant kernel sources for details.
769 This use is obsolete now.
770 .SH BUGS
771 In kernels up to and including 2.6.13, specifying
772 .B SA_NODEFER
773 in
774 .I sa_flags
775 prevents not only the delivered signal from being masked during
776 execution of the handler, but also the signals specified in
777 .IR sa_mask .
778 This bug was fixed in kernel 2.6.14.
779 .SH EXAMPLE
780 See
781 .BR mprotect (2).
782 .SH "SEE ALSO"
783 .BR kill (1),
784 .BR kill (2),
785 .BR killpg (2),
786 .BR pause (2),
787 .BR sigaltstack (2),
788 .BR signal (2),
789 .BR signalfd (2),
790 .BR sigpending (2),
791 .BR sigprocmask (2),
792 .BR sigsuspend (2),
793 .BR wait (2),
794 .BR raise (3),
795 .BR siginterrupt (3),
796 .BR sigqueue (3),
797 .BR sigsetops (3),
798 .BR sigvec (3),
799 .BR core (5),
800 .BR signal (7)