The Linux Programming Interface
Signals: Signal Handlers 437 sigstack.ss_size = SIGSTKSZ; sigstack.ss_flags = 0; if (sigaltstack(&sigstack, NULL) == -1) err ...
438 Chapter 21 The sigaction structure uses a union to combine the sa_sigaction and sa_handler fields. (Most other UNIX implemen ...
Signals: Signal Handlers 439 Upon entry to a signal handler, the fields of the siginfo_t structure are set as follows: si_signo ...
440 Chapter 21 The following two fields are set only for the delivery of a SIGIO signal (Section 63.3): si_band This field conta ...
Signals: Signal Handlers 441 Table 21-2: Values returned in the si_code field of the siginfo_t structure Signal si_code value Or ...
442 Chapter 21 The ucontext argument The final argument passed to a handler established with the SA_SIGINFO flag, ucontext, is a ...
Signals: Signal Handlers 443 If we frequently write code such as the above, it can be useful to define a macro such as the follo ...
444 Chapter 21 time of signal delivery, the input and output system calls will be interrupted, but return a success status: an i ...
Signals: Signal Handlers 445 If flag is true (1), then a handler for the signal sig will interrupt blocking system calls. If fla ...
446 Chapter 21 We can use sigaltstack() to define an alternate signal stack for a process. This is an area of memory that is use ...
Chapter 22: Signals: Advanced Features This chapter completes the discussion of signals that we began in Chapter 20, cover- ing ...
448 Chapter 22 22.1 Core Dump Files Certain signals cause a process to create a core dump and terminate (Table 20-1, page 396). ...
Signals: Advanced Features 449 z The file system on which the current working directory resides is mounted read-only, is full, o ...
450 Chapter 22 22.2 Special Cases for Delivery, Disposition, and Handling For certain signals, special rules apply regarding del ...
Signals: Advanced Features 451 Don’t change the disposition of ignored terminal-generated signals If, at the time it was execed, ...
452 Chapter 22 22.4 Hardware-Generated Signals.................................................................................. ...
Signals: Advanced Features 453 The model we have implicitly considered so far is asynchronous signal genera- tion, in which the ...
454 Chapter 22 Order of delivery of multiple unblocked signals If a process has multiple pending signals that are unblocked usin ...
Signals: Advanced Features 455 z Delivery of further occurrences of a signal was not blocked during execution of a signal handle ...
456 Chapter 22 by default. In older versions of the library, the earlier unreliable (System V-compatible) semantics are provided ...
«
20
21
22
23
24
25
26
27
28
29
»
Free download pdf