Lines Matching full:signal

33 .Nd software signal facilities
42 int sa_flags; /* see signal options below */
43 sigset_t sa_mask; /* signal mask to apply */
55 Signal delivery resembles the occurrence of a hardware interrupt:
56 the signal is normally blocked from further occurrence, the current thread
60 to which a signal is delivered, or specify that a signal is to be
63 by the system when a signal occurs.
64 A signal may also be
71 Normally, signal handlers execute on the current stack
75 .Em "signal stack" .
77 Signal routines normally execute with the signal that caused their
82 .Em "signal mask"
85 The signal mask for a thread is initialized
91 call, or when a signal is delivered to the thread.
93 When a signal
94 condition arises for a process or thread, the signal is added to a set of
96 Whether the signal is directed at the process in general or at a specific
99 if the signal is not currently
103 if the signal is not currently
117 When a caught signal
119 a new signal mask is calculated (as described below),
120 and the signal handler is invoked.
122 is arranged so that if the signal handling routine returns
124 from before the signal's delivery.
128 When a signal is delivered to a thread a new signal mask is
129 installed for the duration of the process' signal handler
133 This mask is formed by taking the union of the current signal mask set,
134 the signal to be delivered, and
135 the signal mask associated with the handler to be invoked.
140 assigns an action for a signal specified by
147 or a handler routine) and mask to be used when delivering the specified signal.
150 is non-NULL, the previous handling information for the signal
167 Once a signal handler is installed, it normally remains installed
173 A signal-specific default action may be reset by
180 See the signal list below for each signal's default action.
185 the default action for the signal is to discard the signal,
186 and if a signal is pending,
187 the pending signal is discarded even if the signal is masked.
193 of the signal are ignored and discarded.
203 signal,
206 signal will be generated only when a child process exits,
213 signal, the system will not create zombie processes when children of
229 If this bit is set, the system will deliver the signal to the process
231 .Em "signal stack" ,
235 If this bit is set, further occurrences of the delivered signal are
240 at the moment the signal is delivered.
256 If a signal is caught during the system calls listed below,
287 the signal mask is inherited by the new thread and
288 the set of pending signals and the signal stack for the new thread are empty.
294 all signals, the signal mask, the signal stack,
303 the signal mask remains the same;
325 .It Dv SIGTERM Ta terminate process Ta software termination signal
326 .It Dv SIGURG Ta discard signal Ta urgent condition present on socket
328 .It Dv SIGTSTP Ta stop process Ta stop signal generated from keyboard
329 .It Dv SIGCONT Ta discard signal Ta continue after stop
330 .It Dv SIGCHLD Ta discard signal Ta child status has changed
333 .It Dv SIGIO Ta discard signal Ta I/O is possible on a descriptor (see Xr fcntl 2 )
338 .It Dv SIGWINCH Ta discard signal Ta window size change
339 .It Dv SIGINFO Ta discard signal Ta status request from keyboard
340 .It Dv SIGUSR1 Ta terminate process Ta user defined signal 1
341 .It Dv SIGUSR2 Ta terminate process Ta user defined signal 2
355 by signals and are async-signal safe.
357 invoke them, without restriction, from signal-catching functions
454 .Fn signal ,
503 Base Interfaces not specified as async-signal safe by
510 Base Interfaces not specified as async-signal safe by
587 is async-signal safe.
592 functions is undefined when they are called from a signal handler
594 In general though, signal handlers should do little more than set a
599 and restore it before returning from the signal handler.
602 being set by functions called from inside the signal handler.
674 argument is the signal number, one of the
690 cause of the signal, usually one of the
694 or codes specific to a signal, i.e., one of the
717 will fail and no new signal handler will be installed if one
724 is not a valid signal number.