1 strace of "sleep 1 | sleep 2" being run from interactive bash 3.0
5 open /dev/tty [, if fails, open ttyname(0)]; close /* helps re-establish ctty */
6 get current signal mask
8 TCGETS on fd# 2 /* NB: if returns ENOTTY (2>/dev/null), sh seems to disable job control,
9 does not show prompt, but still executes cmds from fd# 0 */
10 install default handlers for CHLD QUIT TERM
11 install common handler for HUP INT ILL TRAP ABRT FPE BUS SEGV SYS PIPE ALRM TERM XCPU XFSZ VTALRM USR1 USR2
13 install handler for INT
15 install handler for INT
17 install handler for WINCH
21 get our pprocess group
23 Each process group is a member of a session and each process is a member
24 of the session of which its process group is a member.
25 Process groups are used for distribution of signals, and by terminals
26 to arbitrate requests for their input: processes that have the same
27 process group as the terminal are foreground and may read, while others
28 will block with a signal if they attempt to read. These calls are thus used
29 by programs (shells) to create process groups in implementing job control.
30 The TIOCGPGRP and TIOCSPGRP calls described in termios(3) are used to get/set
31 the process group of the control terminal.
32 If a session has a controlling terminal, CLOCAL is not set and a hangup occurs,
33 then the session leader is sent a SIGHUP. If the session leader exits,
34 the SIGHUP signal will be sent to each process in the foreground process
35 group of the controlling terminal.
36 If the exit of the process causes a process group to become orphaned,
37 and if any member of the newly-orphaned process group is stopped, then a SIGHUP
38 signal followed by a SIGCONT signal will be sent to each process
39 in the newly-orphaned process group.
42 move ourself to our own process group
43 block CHLD TSTP TTIN TTOU
44 set tty's (255, stderr's) foreground process group to our group
52 block CHLD TSTP TTIN TTOU
53 set fd #255 foreground process group to our group
60 lotsa sigactions: set INT,ALRM,WINCH handlers, ignore TERM,QUIT,TSTP,TTOU,TTIN
67 read "sleep 1 | sleep 2\n"
71 lotsa sigactions: set INT,ALRM,WINCH handlers, ignore TERM,QUIT,TSTP,TTOU,TTIN
73 pipe([4, 5]) /* oops seems I lost another pipe() in editing... */
75 put child in it's own process group
80 put child in the same process group as first one
84 block only CHLD TSTP TTIN TTOU
85 set fd# 255 foreground process group to first child's one
89 wait4 for children to die or stop - first child exits
90 wait4 for children to die or stop - second child exits
91 block CHLD TSTP TTIN TTOU
92 set fd# 255 foreground process group to our own one
96 --- SIGCHLD (Child exited) @ 0 (0) ---
97 wait for it - no child (already waited for)
104 execve("/bin/sh", ["sh"], [/* 34 vars */]) = 0
105 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
106 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
107 ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
108 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
109 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
110 rt_sigaction(SIGTERM, {SIG_DFL}, {SIG_DFL}, 8) = 0
111 rt_sigaction(SIGHUP, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
112 rt_sigaction(SIGINT, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
113 rt_sigaction(SIGILL, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
114 rt_sigaction(SIGTRAP, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
115 rt_sigaction(SIGABRT, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
116 rt_sigaction(SIGFPE, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
117 rt_sigaction(SIGBUS, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
118 rt_sigaction(SIGSEGV, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
119 rt_sigaction(SIGSYS, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
120 rt_sigaction(SIGPIPE, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
121 rt_sigaction(SIGALRM, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
122 rt_sigaction(SIGTERM, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
123 rt_sigaction(SIGXCPU, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
124 rt_sigaction(SIGXFSZ, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
125 rt_sigaction(SIGVTALRM, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
126 rt_sigaction(SIGUSR1, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
127 rt_sigaction(SIGUSR2, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
128 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
129 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
130 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
131 rt_sigaction(SIGTERM, {SIG_IGN}, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
132 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
133 rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_DFL}, 8) = 0
134 rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_DFL}, 8) = 0
135 rt_sigaction(SIGTTIN, {SIG_IGN}, {SIG_DFL}, 8) = 0
136 rt_sigaction(SIGWINCH, {0x807dc33, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
139 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
140 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
143 fcntl64(255, F_GETFD) = -1 EBADF (Bad file descriptor)
146 ioctl(255, TIOCGPGRP, [1865]) = 0
148 setpgid(0, 19473) = 0
149 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
150 ioctl(255, TIOCSPGRP, [19473]) = 0
151 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
152 fcntl64(255, F_SETFD, FD_CLOEXEC) = 0
153 rt_sigaction(SIGCHLD, {0x807c922, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_DFL}, 8) = 0
154 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
155 fcntl64(0, F_GETFL) = 0x2 (flags O_RDWR)
157 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
158 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
159 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
160 ioctl(255, TIOCSPGRP, [19473]) = 0
161 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
162 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
163 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
164 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
165 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
166 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
167 rt_sigaction(SIGINT, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
168 rt_sigaction(SIGTERM, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
169 rt_sigaction(SIGTERM, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
170 rt_sigaction(SIGQUIT, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
171 rt_sigaction(SIGQUIT, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
172 rt_sigaction(SIGALRM, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
173 rt_sigaction(SIGTSTP, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
174 rt_sigaction(SIGTSTP, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
175 rt_sigaction(SIGTTOU, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
176 rt_sigaction(SIGTTOU, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
177 rt_sigaction(SIGTTIN, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
178 rt_sigaction(SIGTTIN, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
179 rt_sigaction(SIGWINCH, {0x80ca5cd, [], SA_RESTORER|SA_RESTART, 0x6ff7a4f8}, {0x807dc33, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
180 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
181 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
182 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
183 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
184 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
185 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
186 write(2, "sh-3.00# ", 9) = 9
187 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
190 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
193 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
194 ... rest of "sleep 1 | sleep 2" entered...
195 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
198 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
200 write(2, "\n", 1) = 1
201 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
202 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
203 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
204 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
205 rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_IGN}, 8) = 0
206 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_IGN}, 8) = 0
207 rt_sigaction(SIGALRM, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
208 rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_IGN}, 8) = 0
209 rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_IGN}, 8) = 0
210 rt_sigaction(SIGTTIN, {SIG_IGN}, {SIG_IGN}, 8) = 0
211 rt_sigaction(SIGWINCH, {0x807dc33, [], SA_RESTORER, 0x6ff7a4f8}, {0x80ca5cd, [], SA_RESTORER|SA_RESTART, 0x6ff7a4f8}, 8) = 0
212 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
213 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
215 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
217 setpgid(19755, 19755) = 0
218 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
220 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
222 setpgid(19756, 19755) = 0
223 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
225 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
226 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [CHLD], 8) = 0
227 ioctl(255, TIOCSPGRP, [19755]) = 0
228 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
229 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
230 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
231 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WUNTRACED, NULL) = 19755
232 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WUNTRACED, NULL) = 19756
233 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [CHLD], 8) = 0
234 ioctl(255, TIOCSPGRP, [19473]) = 0
235 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
236 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
237 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
238 --- SIGCHLD (Child exited) @ 0 (0) ---
239 wait4(-1, 0x77fc9c54, WNOHANG|WUNTRACED, NULL) = -1 ECHILD (No child processes)
240 sigreturn() = ? (mask now [])
241 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
242 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
243 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
244 ioctl(255, TIOCSPGRP, [19473]) = 0
245 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
246 rt_sigaction(SIGINT, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
247 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
248 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
249 rt_sigaction(SIGINT, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
250 rt_sigaction(SIGTERM, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
251 rt_sigaction(SIGTERM, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
252 rt_sigaction(SIGQUIT, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
253 rt_sigaction(SIGQUIT, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
254 rt_sigaction(SIGALRM, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {0x808f752, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
255 rt_sigaction(SIGTSTP, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
256 rt_sigaction(SIGTSTP, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
257 rt_sigaction(SIGTTOU, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
258 rt_sigaction(SIGTTOU, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
259 rt_sigaction(SIGTTIN, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, {SIG_IGN}, 8) = 0
260 rt_sigaction(SIGTTIN, {SIG_IGN}, {0x80ca530, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
261 rt_sigaction(SIGWINCH, {0x80ca5cd, [], SA_RESTORER|SA_RESTART, 0x6ff7a4f8}, {0x807dc33, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
262 write(2, "sh-3.00# ", 9) = 9
266 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
267 rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_IGN}, 8) = 0
268 rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_IGN}, 8) = 0
269 rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_IGN}, 8) = 0
270 setpgid(19755, 19755) = 0
271 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
272 ioctl(255, TIOCSPGRP, [19755]) = 0
273 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
277 rt_sigaction(SIGINT, {SIG_DFL}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
278 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
279 rt_sigaction(SIGTERM, {SIG_DFL}, {SIG_IGN}, 8) = 0
280 rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807c922, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
281 execve("/bin/sleep", ["sleep", "1"], [/* 34 vars */]) = 0
287 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
288 rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_IGN}, 8) = 0
289 rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_IGN}, 8) = 0
290 rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_IGN}, 8) = 0
291 setpgid(19756, 19755) = 0
292 rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0
293 ioctl(255, TIOCSPGRP, [19755]) = 0
294 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
297 rt_sigaction(SIGINT, {SIG_DFL}, {0x808f7d7, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
298 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
299 rt_sigaction(SIGTERM, {SIG_DFL}, {SIG_IGN}, 8) = 0
300 rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807c922, [], SA_RESTORER, 0x6ff7a4f8}, 8) = 0
301 execve("/bin/sleep", ["sleep", "2"], [/* 34 vars */]) = 0