Advanced Programming in the UNIX® Environment
ptg10805159 Section 9.2 Te rminal Logins 287 It isgettythat callsopenfor the terminal device. The terminal is opened for reading ...
ptg10805159 288 Process Relationships Chapter 9 result to thepw_passwd field from our shadow passwordfile entry.Ifthe login atte ...
ptg10805159 Section 9.2 Te rminal Logins 289 init login shell terminal device driver user at a terminal fd 0, 1, 2 process ID 1 ...
ptg10805159 290 Process Relationships Chapter 9 /etc/inittabcontains the configuration information specifying the terminal devic ...
ptg10805159 Section 9.3 Network Logins 291 BSD Network Logins In BSD, a single process waits for most network connections: thein ...
ptg10805159 292 Process Relationships Chapter 9 Thetelnetdprocess then opens a pseudo terminal device and splits into two proces ...
ptg10805159 Section 9.4 Process Groups 293 By default, thetelnetdaemon is disabled on Mac OS X (although it can be enabled with ...
ptg10805159 294 Process Relationships Chapter 9 #include <unistd.h> pid_t getpgid(pid_tpid); Returns: process group ID if ...
ptg10805159 Section 9.5 Sessions 295 9.5 Sessions Asession is a collection of one or moreprocess groups. For example, we could h ...
ptg10805159 296 Process Relationships Chapter 9 This function returns an error if the caller is already a process group leader.T ...
ptg10805159 Section 9.6 Controlling Terminal 297 •Whenever we press the terminal’s quit key (often Control-backslash), the quit ...
ptg10805159 298 Process Relationships Chapter 9 FreeBSD Linux Mac OS X Solaris Method 8.0 3.2.0 10.6.8 10 openwithoutO_NOCTTY •• ...
ptg10805159 Section 9.8 Job Control 299 Most applications don’t call these two functions directly.Instead, the functions are nor ...
ptg10805159 300 Process Relationships Chapter 9 if the host does. The Bourne-again shell also supports job control. We’ll just t ...
ptg10805159 Section 9.8 Job Control 301 $fg %1 bring job number 1 into the foreground cat > temp.foo the shell tells us which ...
ptg10805159 302 Process Relationships Chapter 9 background process group(s) foreground process group login shell login exec gett ...
ptg10805159 Section 9.9 Shell Execution of Programs 303 driver,the shell, and some applications—isahack. Some use job control wi ...
ptg10805159 304 Process Relationships Chapter 9 This shell doesn’t know about job control, so the background job is not put into ...
ptg10805159 Section 9.9 Shell Execution of Programs 305 of that name. The next line we enter to the shell is taken as the passwo ...
ptg10805159 306 Process Relationships Chapter 9 Since the last process in the pipeline is the child of the login shell, the shel ...
«
12
13
14
15
16
17
18
19
20
21
»
Free download pdf