Advanced Programming in the UNIX® Environment
ptg10805159 Section 9.10 Orphaned Process Groups 307 ps -o pid,ppid,pgid,sid,tpgid,comm | cat1 & the results aresimilar,but ...
ptg10805159 308 Process Relationships Chapter 9 #include "apue.h" #include <errno.h> static void sig_hup(int signo) { prin ...
ptg10805159 Section 9.10 Orphaned Process Groups 309 •When the parent terminates, the child is orphaned, so the child’s parent p ...
ptg10805159 310 Process Relationships Chapter 9 9.11 FreeBSD Implementation Having talked about the various attributes of a proc ...
ptg10805159 Section 9.11FreeBSD Implementation 311 s_leaderis a pointer to theprocstructure of the session leader. s_ttyvpis a ...
ptg10805159 312 Process Relationships Chapter 9 Theprocstructurecontains all the information for a single process. p_pidcontain ...
ptg10805159 10 Signals 10.1 Introduction Signals aresoftwareinterrupts. Most nontrivial application programs need to deal with s ...
ptg10805159 314 Signals Chapter 10 Linux 3.2.0 each support 31 different signals, whereas Solaris 10 supports 40 different signa ...
ptg10805159 Section 10.2 Signal Concepts 315 We can tell the kernel to do one of three things when a signal occurs. We call this ...
ptg10805159 316 Signals Chapter 10 FreeBSD Linux Mac OS X Solaris Name Description ISO C SUS 8.0 3.2.0 10.6.8 10 Default action ...
ptg10805159 Section 10.2 Signal Concepts 317 The corefile will not be generated if (a) the process was set-user-ID and the curre ...
ptg10805159 318 Signals Chapter 10 SIGEMT This indicates an implementation-defined hardwarefault. The name EMT comes from the PD ...
ptg10805159 Section 10.2 Signal Concepts 319 SIGINT This signal is generated by the terminal driver when we press the interrupt ...
ptg10805159 320 Signals Chapter 10 SIGPROF This signal is marked obsolescent in SUSv4, so it might be removed in a futureversion ...
ptg10805159 Section 10.2 Signal Concepts 321 SIGTERM This is the termination signal sent by thekill( 1 )command by default. Beca ...
ptg10805159 322 Signals Chapter 10 These include tcsetattr, tcsendbreak, tcdrain, tcflush, tcflow,and tcsetpgrp.Wedescribe these ...
ptg10805159 Section 10.3 signalFunction 323 10.3 signalFunction The simplest interface to the signal features of the UNIX System ...
ptg10805159 324 Signals Chapter 10 Then the prototype becomes Sigfunc *signal(int, Sigfunc *); We’ve included thistypedefinapue. ...
ptg10805159 Section 10.3 signalFunction 325 We invoke the program in the background and use thekill( 1 )command to send it signa ...
ptg10805159 326 Signals Chapter 10 These two calls tosignalalso show a limitation of thesignalfunction: we are not able to deter ...
«
13
14
15
16
17
18
19
20
21
22
»
Free download pdf