Debian Codegraph @

po/pt_BR/man2/wait.2.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Ricardo C.O.Freitas <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
10 "PO-Revision-Date: 2001-06-02 19:20-0300\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Virtaal 1.0.0-beta1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "wait"
26 msgstr "wait"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, fuzzy
53 #| msgid "wait, waitpid - wait for process termination"
54 msgid "wait, waitpid, waitid - wait for process to change state"
55 msgstr "wait, waitpid - espera pelo término de um processo"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "BIBLIOTECA"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "Standard C library (I<libc>,\\ I<-lc>)"
68 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "SINOPSE"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, fuzzy, no-wrap
81 #| msgid "B<#include E<lt>sys/wait.hE<gt>>"
82 msgid "B<#include E<lt>sys/wait.hE<gt>>\n"
83 msgstr "B<#include E<lt>sys/wait.hE<gt>>"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, fuzzy, no-wrap
89 #| msgid "B<pid_t waitpid(pid_t >I<pid>B<, int *>I<wstatus>B<, int >I<options>B<);>"
90 msgid ""
91 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
92 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
93 msgstr "B<pid_t waitpid(pid_t >I<pid>B<, int *>I<wstatus>B<, int >I<options>B<);>"
94
95 #. type: Plain text
96 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
97 #: opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
101 " /* This is the glibc and POSIX interface; see\n"
102 " VERSIONS for information on the raw system call. */\n"
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
110 msgstr ""
111 "Requisitos de macro de teste de recursos para o glibc (consulte "
112 "B<feature_test_macros>(7)):"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid "B<waitid>():"
118 msgstr "B<waitid>():"
119
120 #. (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, fuzzy, no-wrap
125 #| msgid ""
126 #| "_ISOC99_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
127 #| " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
128 #| " || /* Glibc versions E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
129 msgid ""
130 " Since glibc 2.26:\n"
131 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
132 " glibc 2.25 and earlier:\n"
133 " _XOPEN_SOURCE\n"
134 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
135 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
136 msgstr ""
137 "_ISOC99_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
138 " || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE\n"
139 " || /* Glibc versões E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
140
141 #. type: SH
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid "DESCRIPTION"
146 msgstr "DESCRIÇÃO"
147
148 #. type: Plain text
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 msgid ""
152 "All of these system calls are used to wait for state changes in a child of "
153 "the calling process, and obtain information about the child whose state has "
154 "changed. A state change is considered to be: the child terminated; the "
155 "child was stopped by a signal; or the child was resumed by a signal. In the "
156 "case of a terminated child, performing a wait allows the system to release "
157 "the resources associated with the child; if a wait is not performed, then "
158 "the terminated child remains in a \"zombie\" state (see NOTES below)."
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "If a child has already changed state, then these calls return immediately. "
166 "Otherwise, they block until either a child changes state or a signal handler "
167 "interrupts the call (assuming that system calls are not automatically "
168 "restarted using the B<SA_RESTART> flag of B<sigaction>(2)). In the "
169 "remainder of this page, a child whose state has changed and which has not "
170 "yet been waited upon by one of these system calls is termed I<waitable>."
171 msgstr ""
172
173 #. type: SS
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "wait() and waitpid()"
178 msgstr "wait() e waitpid()"
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "The B<wait>() system call suspends execution of the calling thread until "
185 "one of its children terminates. The call I<wait(&wstatus)> is equivalent to:"
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "waitpid(-1, &wstatus, 0);\n"
193 msgstr "waitpid(-1, &wstatus, 0);\n"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "The B<waitpid>() system call suspends execution of the calling thread until "
200 "a child specified by I<pid> argument has changed state. By default, "
201 "B<waitpid>() waits only for terminated children, but this behavior is "
202 "modifiable via the I<options> argument, as described below."
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, fuzzy
209 #| msgid "The value of I<pid> can be one of:"
210 msgid "The value of I<pid> can be:"
211 msgstr "O valor de I<pid> pode ser:"
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, fuzzy, no-wrap
217 #| msgid "E<lt> -1"
218 msgid "E<lt> B<-1>"
219 msgstr "E<lt> -1"
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, fuzzy
225 #| msgid ""
226 #| "which means to wait for any child process whose process group ID is equal "
227 #| "to the absolute value of I<pid>."
228 msgid ""
229 "meaning wait for any child process whose process group ID is equal to the "
230 "absolute value of I<pid>."
231 msgstr ""
232 "o que significa esperar por algum processo filho, cujo ID do processo de "
233 "grupo seja igual ao valor absoluto de I<pid>."
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<-1>"
240 msgstr "B<-1>"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid "meaning wait for any child process."
246 msgstr ""
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<0>"
253 msgstr "B<0>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, fuzzy
259 #| msgid ""
260 #| "which means to wait for any child process whose process group ID is equal "
261 #| "to that of the calling process."
262 msgid ""
263 "meaning wait for any child process whose process group ID is equal to that "
264 "of the calling process at the time of the call to B<waitpid>()."
265 msgstr ""
266 "o que significa esperar por algum processo filho, cujo ID do processo de "
267 "grupo seja igual ao do processo que originou a chamada."
268
269 #. type: TP
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, fuzzy, no-wrap
273 #| msgid "E<gt> 0"
274 msgid "E<gt> B<0>"
275 msgstr "E<gt> 0"
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, fuzzy
281 #| msgid ""
282 #| "which means to wait for the child whose process ID is equal to the value "
283 #| "of I<pid>."
284 msgid ""
285 "meaning wait for the child whose process ID is equal to the value of I<pid>."
286 msgstr ""
287 "o que significa esperar por algum processo filho, cujo ID de processo seja "
288 "ao valor de I<pid>."
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "The value of I<options> is an OR of zero or more of the following constants:"
295 msgstr ""
296 "O valor de I<options> é um OR de zero ou mais das seguintes constantes:"
297
298 #. type: TP
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "B<WNOHANG>"
303 msgstr "B<WNOHANG>"
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, fuzzy
309 #| msgid "which means to return immediately if no child has exited."
310 msgid "return immediately if no child has exited."
311 msgstr "o que significa retorno imediato se nenhum processo filho saiu."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<WUNTRACED>"
318 msgstr "B<WUNTRACED>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "also return if a child has stopped (but not traced via B<ptrace>(2)). "
325 "Status for I<traced> children which have stopped is provided even if this "
326 "option is not specified."
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<WCONTINUED> (since Linux 2.6.10)"
334 msgstr "B<WCONTINUED> (desde o Linux 2.6.10)"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "also return if a stopped child has been resumed by delivery of B<SIGCONT>."
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "(For Linux-only options, see below.)"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "If I<wstatus> is not NULL, B<wait>() and B<waitpid>() store status "
354 "information in the I<int> to which it points. This integer can be inspected "
355 "with the following macros (which take the integer itself as an argument, not "
356 "a pointer to it, as is done in B<wait>() and B<waitpid>()!):"
357 msgstr ""
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<WIFEXITED(>I<wstatus>B<)>"
364 msgstr "B<WIFEXITED(>I<wstatus>B<)>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "returns true if the child terminated normally, that is, by calling "
371 "B<exit>(3) or B<_exit>(2), or by returning from main()."
372 msgstr ""
373
374 #. type: TP
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "B<WEXITSTATUS(>I<wstatus>B<)>"
379 msgstr "B<WEXITSTATUS(>I<wstatus>B<)>"
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, fuzzy
385 #| msgid ""
386 #| "evaluates to the least significant eight bits of the return code of the "
387 #| "child which terminated, which may have been set as the argument to a call "
388 #| "to B<exit()> or as the argument for a B<return> statement in the main "
389 #| "program. This macro can only be evaluated if B<WIFEXITED> returned non-"
390 #| "zero."
391 msgid ""
392 "returns the exit status of the child. This consists of the least "
393 "significant 8 bits of the I<status> argument that the child specified in a "
394 "call to B<exit>(3) or B<_exit>(2) or as the argument for a return "
395 "statement in main(). This macro should be employed only if B<WIFEXITED> "
396 "returned true."
397 msgstr ""
398 "avalia os oito bits menos significantes do código de retorno do processo "
399 "filho terminado, que pode ter sido configurado como argumento para uma "
400 "chamada para B<exit()> ou como um argumento para uma declaração de B<return> "
401 "no programa principal. Esta macro somente pode ser usada se B<WIFEXITED> "
402 "retorna não-zero."
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "B<WIFSIGNALED(>I<wstatus>B<)>"
409 msgstr "B<WIFSIGNALED(>I<wstatus>B<)>"
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, fuzzy
415 #| msgid ""
416 #| "returns true if the child process exited because of a signal which was "
417 #| "not caught."
418 msgid "returns true if the child process was terminated by a signal."
419 msgstr ""
420 "retorna 'true' se um processo filho sai porque um sinal não foi tomado."
421
422 #. type: TP
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "B<WTERMSIG(>I<wstatus>B<)>"
427 msgstr "B<WTERMSIG(>I<wstatus>B<)>"
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, fuzzy
433 #| msgid ""
434 #| "returns the number of the signal that caused the child process to "
435 #| "terminate. This macro can only be evaluated if B<WIFSIGNALED> returned "
436 #| "non-zero."
437 msgid ""
438 "returns the number of the signal that caused the child process to "
439 "terminate. This macro should be employed only if B<WIFSIGNALED> returned "
440 "true."
441 msgstr ""
442 "retorna o número de um sinal que causou a saida do processo filho. Esta "
443 "macro somente pode ser avaliada se B<WIFSIGNALED> retorna não-zero."
444
445 #. type: TP
446 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
447 #: opensuse-tumbleweed
448 #, fuzzy, no-wrap
449 #| msgid "B<WCOREDUMP(>I<wstatus>B<)>"
450 msgid "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
451 msgstr "B<WCOREDUMP(>I<wstatus>B<)>"
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, fuzzy
457 #| msgid ""
458 #| "returns the number of the signal that caused the child process to "
459 #| "terminate. This macro can only be evaluated if B<WIFSIGNALED> returned "
460 #| "non-zero."
461 msgid ""
462 "returns true if the child produced a core dump (see B<core>(5)). This macro "
463 "should be employed only if B<WIFSIGNALED> returned true."
464 msgstr ""
465 "retorna o número de um sinal que causou a saida do processo filho. Esta "
466 "macro somente pode ser avaliada se B<WIFSIGNALED> retorna não-zero."
467
468 #. type: TP
469 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
470 #: opensuse-tumbleweed
471 #, fuzzy, no-wrap
472 #| msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
473 msgid "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
474 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, fuzzy
480 #| msgid ""
481 #| "returns true if the child process which caused the return is currently "
482 #| "stopped; this is only possible if the call was done using B<WUNTRACED>."
483 msgid ""
484 "returns true if the child process was stopped by delivery of a signal; this "
485 "is possible only if the call was done using B<WUNTRACED> or when the child "
486 "is being traced (see B<ptrace>(2))."
487 msgstr ""
488 "retorna 'true' se o processo filho que provocou o retorno estiver atualmente "
489 "parado; este é somente possível de uma chamada foi feita utilizando "
490 "B<WUNTRACED>."
491
492 #. type: TP
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "B<WSTOPSIG(>I<wstatus>B<)>"
497 msgstr "B<WSTOPSIG(>I<wstatus>B<)>"
498
499 #. type: Plain text
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, fuzzy
503 #| msgid ""
504 #| "returns the number of the signal which caused the child to stop. This "
505 #| "macro can only be evaluated if B<WIFSTOPPED> returned non-zero."
506 msgid ""
507 "returns the number of the signal which caused the child to stop. This macro "
508 "should be employed only if B<WIFSTOPPED> returned true."
509 msgstr ""
510 "retorna o número do sinal que causou a parada do processo filho. Esta macro "
511 "somente pode ser avaliada se B<WIFSTOPPED> retorna não-zero."
512
513 #. type: TP
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "B<WIFCONTINUED(>I<wstatus>B<)>"
518 msgstr "B<WIFCONTINUED(>I<wstatus>B<)>"
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "(since Linux 2.6.10) returns true if the child process was resumed by "
525 "delivery of B<SIGCONT>."
526 msgstr ""
527
528 #. type: SS
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid "waitid()"
533 msgstr "waitid()"
534
535 #. type: Plain text
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 msgid ""
539 "The B<waitid>() system call (available since Linux 2.6.9) provides more "
540 "precise control over which child state changes to wait for."
541 msgstr ""
542
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid ""
547 "The I<idtype> and I<id> arguments select the child(ren) to wait for, as "
548 "follows:"
549 msgstr ""
550
551 #. type: TP
552 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
553 #: opensuse-tumbleweed
554 #, fuzzy, no-wrap
555 #| msgid "I<idtype> == B<P_PID>"
556 msgid "I<idtype> == \\f[B]P_PID\\fR"
557 msgstr "I<idtype> == B<P_PID>"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, fuzzy
563 #| msgid ""
564 #| "which means to wait for the child whose process ID is equal to the value "
565 #| "of I<pid>."
566 msgid "Wait for the child whose process ID matches I<id>."
567 msgstr ""
568 "o que significa esperar por algum processo filho, cujo ID de processo seja "
569 "ao valor de I<pid>."
570
571 #. type: TP
572 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
573 #: opensuse-tumbleweed
574 #, fuzzy, no-wrap
575 #| msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
576 msgid "I<idtype> == \\f[B]P_PIDFD\\fR (since Linux 5.4)"
577 msgstr "I<idtype> == B<P_PIDFD> (desde o Linux 5.4)"
578
579 #. commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "Wait for the child referred to by the PID file descriptor specified in "
585 "I<id>. (See B<pidfd_open>(2) for further information on PID file "
586 "descriptors.)"
587 msgstr ""
588
589 #. type: TP
590 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
591 #: opensuse-tumbleweed
592 #, fuzzy, no-wrap
593 #| msgid "I<idtype> == B<P_PGID>"
594 msgid "I<idtype> == \\f[B]P_PGID\\fR"
595 msgstr "I<idtype> == B<P_PGID>"
596
597 #. commit 821cc7b0b205c0df64cce59aacc330af251fa8f7
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 msgid ""
602 "Wait for any child whose process group ID matches I<id>. Since Linux 5.4, "
603 "if I<id> is zero, then wait for any child that is in the same process group "
604 "as the caller's process group at the time of the call."
605 msgstr ""
606
607 #. type: TP
608 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
609 #: opensuse-tumbleweed
610 #, fuzzy, no-wrap
611 #| msgid "I<idtype> == B<P_ALL>"
612 msgid "I<idtype> == \\f[B]P_ALL\\fR"
613 msgstr "I<idtype> == B<P_ALL>"
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid "Wait for any child; I<id> is ignored."
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "The child state changes to wait for are specified by ORing one or more of "
626 "the following flags in I<options>:"
627 msgstr ""
628
629 #. type: TP
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 #, no-wrap
633 msgid "B<WEXITED>"
634 msgstr "B<WEXITED>"
635
636 #. type: Plain text
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 msgid "Wait for children that have terminated."
640 msgstr ""
641
642 #. type: TP
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 #, no-wrap
646 msgid "B<WSTOPPED>"
647 msgstr "B<WSTOPPED>"
648
649 #. type: Plain text
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 msgid "Wait for children that have been stopped by delivery of a signal."
653 msgstr ""
654
655 #. type: TP
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 #, no-wrap
659 msgid "B<WCONTINUED>"
660 msgstr "B<WCONTINUED>"
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 msgid ""
666 "Wait for (previously stopped) children that have been resumed by delivery of "
667 "B<SIGCONT>."
668 msgstr ""
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 msgid "The following flags may additionally be ORed in I<options>:"
674 msgstr ""
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid "As for B<waitpid>()."
680 msgstr ""
681
682 #. type: TP
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "B<WNOWAIT>"
687 msgstr "B<WNOWAIT>"
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 msgid ""
693 "Leave the child in a waitable state; a later wait call can be used to again "
694 "retrieve the child status information."
695 msgstr ""
696
697 #. type: Plain text
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 msgid ""
701 "Upon successful return, B<waitid>() fills in the following fields of the "
702 "I<siginfo_t> structure pointed to by I<infop>:"
703 msgstr ""
704
705 #. type: TP
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid "I<si_pid>"
710 msgstr "I<si_pid>"
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 msgid "The process ID of the child."
716 msgstr ""
717
718 #. type: TP
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "I<si_uid>"
723 msgstr "I<si_uid>"
724
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid ""
729 "The real user ID of the child. (This field is not set on most other "
730 "implementations.)"
731 msgstr ""
732
733 #. type: TP
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 #, no-wrap
737 msgid "I<si_signo>"
738 msgstr "I<si_signo>"
739
740 #. type: Plain text
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 msgid "Always set to B<SIGCHLD>."
744 msgstr ""
745
746 #. type: TP
747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
749 #, no-wrap
750 msgid "I<si_status>"
751 msgstr "I<si_status>"
752
753 #. type: Plain text
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 msgid ""
757 "Either the exit status of the child, as given to B<_exit>(2) (or "
758 "B<exit>(3)), or the signal that caused the child to terminate, stop, or "
759 "continue. The I<si_code> field can be used to determine how to interpret "
760 "this field."
761 msgstr ""
762
763 #. type: TP
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 #, no-wrap
767 msgid "I<si_code>"
768 msgstr "I<si_code>"
769
770 #. type: Plain text
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 msgid ""
774 "Set to one of: B<CLD_EXITED> (child called B<_exit>(2)); B<CLD_KILLED> "
775 "(child killed by signal); B<CLD_DUMPED> (child killed by signal, and dumped "
776 "core); B<CLD_STOPPED> (child stopped by signal); B<CLD_TRAPPED> (traced "
777 "child has trapped); or B<CLD_CONTINUED> (child continued by B<SIGCONT>)."
778 msgstr ""
779
780 #. type: Plain text
781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
783 msgid ""
784 "If B<WNOHANG> was specified in I<options> and there were no children in a "
785 "waitable state, then B<waitid>() returns 0 immediately and the state of the "
786 "I<siginfo_t> structure pointed to by I<infop> depends on the "
787 "implementation. To (portably) distinguish this case from that where a child "
788 "was in a waitable state, zero out the I<si_pid> field before the call and "
789 "check for a nonzero value in this field after the call returns."
790 msgstr ""
791
792 #. POSIX.1-2001 leaves this possibility unspecified; most
793 #. implementations (including Linux) zero out the structure
794 #. in this case, but at least one implementation (AIX 5.1)
795 #. does not -- MTK Nov 04
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "POSIX.1-2008 Technical Corrigendum 1 (2013) adds the requirement that when "
801 "B<WNOHANG> is specified in I<options> and there were no children in a "
802 "waitable state, then B<waitid>() should zero out the I<si_pid> and "
803 "I<si_signo> fields of the structure. On Linux and other implementations "
804 "that adhere to this requirement, it is not necessary to zero out the "
805 "I<si_pid> field before calling B<waitid>(). However, not all "
806 "implementations follow the POSIX.1 specification on this point."
807 msgstr ""
808
809 #. type: SH
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 #, no-wrap
813 msgid "RETURN VALUE"
814 msgstr "VALOR DE RETORNO"
815
816 #. type: Plain text
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 msgid ""
820 "B<wait>(): on success, returns the process ID of the terminated child; on "
821 "failure, -1 is returned."
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "B<waitpid>(): on success, returns the process ID of the child whose state "
829 "has changed; if B<WNOHANG> was specified and one or more child(ren) "
830 "specified by I<pid> exist, but have not yet changed state, then 0 is "
831 "returned. On failure, -1 is returned."
832 msgstr ""
833
834 #. FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
835 #. returns the PID of the child. Either this is a bug, or it is intended
836 #. behavior that needs to be documented. See my Jan 2009 LKML mail
837 #. "waitid() return value strangeness when infop is NULL".
838 #. type: Plain text
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 msgid ""
842 "B<waitid>(): returns 0 on success or if B<WNOHANG> was specified and no "
843 "child(ren) specified by I<id> has yet changed state; on failure, -1 is "
844 "returned."
845 msgstr ""
846
847 #. type: Plain text
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 msgid "On failure, each of these calls sets I<errno> to indicate the error."
851 msgstr ""
852
853 #. type: SH
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 #, no-wrap
857 msgid "ERRORS"
858 msgstr "ERROS"
859
860 #. type: TP
861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
863 #, no-wrap
864 msgid "B<EAGAIN>"
865 msgstr "B<EAGAIN>"
866
867 #. type: Plain text
868 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
869 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
870 msgid ""
871 "The PID file descriptor specified in I<id> is nonblocking and the process "
872 "that it refers to has not terminated."
873 msgstr ""
874
875 #. type: TP
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "B<ECHILD>"
880 msgstr "B<ECHILD>"
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 msgid ""
886 "(for B<wait>()) The calling process does not have any unwaited-for children."
887 msgstr ""
888
889 #. type: Plain text
890 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
891 #: opensuse-tumbleweed
892 #, fuzzy
893 #| msgid ""
894 #| "if the process specified in I<pid> does not exist or is not a child of "
895 #| "the calling process. (This can happen for one's own child if the action "
896 #| "for SIGCHLD is set to SIG_IGN. See also the NOTES section about threads.)"
897 msgid ""
898 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
899 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
900 "not a child of the calling process. (This can happen for one's own child if "
901 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux\\ "
902 "Notes> section about threads.)"
903 msgstr ""
904 "Se o processo especificado em I<pid> não existe ou não é um processo filho "
905 "do processo que está chamando. (Isto porde acontecer com o próprio processo "
906 "filho se uma ação para SIGCHLD é configurada para SIG_IGN. Veja também a "
907 "seção NOTAS sobre 'threads'.)"
908
909 #. type: TP
910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
912 #, no-wrap
913 msgid "B<EINTR>"
914 msgstr "B<EINTR>"
915
916 #. type: Plain text
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 msgid ""
920 "B<WNOHANG> was not set and an unblocked signal or a B<SIGCHLD> was caught; "
921 "see B<signal>(7)."
922 msgstr ""
923
924 #. type: TP
925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
927 #, no-wrap
928 msgid "B<EINVAL>"
929 msgstr "B<EINVAL>"
930
931 #. type: Plain text
932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
934 msgid "The I<options> argument was invalid."
935 msgstr "O argumento I<options> era inválido."
936
937 #. type: TP
938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
940 #, no-wrap
941 msgid "B<ESRCH>"
942 msgstr "B<ESRCH>"
943
944 #. type: Plain text
945 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
946 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
947 msgid "(for B<wait>() or B<waitpid>()) I<pid> is equal to B<INT_MIN>."
948 msgstr ""
949
950 #. type: SH
951 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
952 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
953 #, no-wrap
954 msgid "VERSIONS"
955 msgstr "VERSÕES"
956
957 #. type: SS
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 #, no-wrap
961 msgid "C library/kernel differences"
962 msgstr "Diferenças entre kernel/biblioteca C"
963
964 #. type: Plain text
965 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
966 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
967 msgid ""
968 "B<wait>() is actually a library function that (in glibc) is implemented as "
969 "a call to B<wait4>(2)."
970 msgstr ""
971
972 #. e.g., i386 has the system call, but not x86-64
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 msgid ""
977 "On some architectures, there is no B<waitpid>() system call; instead, this "
978 "interface is implemented via a C library wrapper function that calls "
979 "B<wait4>(2)."
980 msgstr ""
981
982 #. type: Plain text
983 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
984 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
985 msgid ""
986 "The raw B<waitid>() system call takes a fifth argument, of type I<struct "
987 "rusage\\ *>. If this argument is non-NULL, then it is used to return "
988 "resource usage information about the child, in the same manner as "
989 "B<wait4>(2). See B<getrusage>(2) for details."
990 msgstr ""
991
992 #. type: SH
993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
995 #, no-wrap
996 msgid "STANDARDS"
997 msgstr "PADRÕES"
998
999 #. type: Plain text
1000 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1001 #: opensuse-tumbleweed
1002 msgid "POSIX.1-2024."
1003 msgstr "POSIX.1-2024."
1004
1005 #. type: SH
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 #, no-wrap
1009 msgid "HISTORY"
1010 msgstr "HISTÓRICO"
1011
1012 #. type: Plain text
1013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1015 msgid "SVr4, 4.3BSD, POSIX.1-2001."
1016 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
1017
1018 #. type: SH
1019 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1020 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1021 #, no-wrap
1022 msgid "NOTES"
1023 msgstr "NOTAS"
1024
1025 #. type: Plain text
1026 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1027 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1028 msgid ""
1029 "A child that terminates, but has not been waited for becomes a \"zombie\". "
1030 "The kernel maintains a minimal set of information about the zombie process "
1031 "(PID, termination status, resource usage information) in order to allow the "
1032 "parent to later perform a wait to obtain information about the child. As "
1033 "long as a zombie is not removed from the system via a wait, it will consume "
1034 "a slot in the kernel process table, and if this table fills, it will not be "
1035 "possible to create further processes. If a parent process terminates, then "
1036 "its \"zombie\" children (if any) are adopted by B<init>(1), (or by the "
1037 "nearest \"subreaper\" process as defined through the use of the B<prctl>(2) "
1038 "B<PR_SET_CHILD_SUBREAPER> operation); B<init>(1) automatically performs a "
1039 "wait to remove the zombies."
1040 msgstr ""
1041
1042 #. type: Plain text
1043 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1044 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1045 msgid ""
1046 "POSIX.1-2001 specifies that if the disposition of B<SIGCHLD> is set to "
1047 "B<SIG_IGN> or the B<SA_NOCLDWAIT> flag is set for B<SIGCHLD> (see "
1048 "B<sigaction>(2)), then children that terminate do not become zombies and a "
1049 "call to B<wait>() or B<waitpid>() will block until all children have "
1050 "terminated, and then fail with I<errno> set to B<ECHILD>. (The original "
1051 "POSIX standard left the behavior of setting B<SIGCHLD> to B<SIG_IGN> "
1052 "unspecified. Note that even though the default disposition of B<SIGCHLD> is "
1053 "\"ignore\", explicitly setting the disposition to B<SIG_IGN> results in "
1054 "different treatment of zombie process children.)"
1055 msgstr ""
1056
1057 #. type: Plain text
1058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1060 msgid ""
1061 "Linux 2.6 conforms to the POSIX requirements. However, Linux 2.4 (and "
1062 "earlier) does not: if a B<wait>() or B<waitpid>() call is made while "
1063 "B<SIGCHLD> is being ignored, the call behaves just as though B<SIGCHLD> were "
1064 "not being ignored, that is, the call blocks until the next child terminates "
1065 "and then returns the process ID and status of that child."
1066 msgstr ""
1067
1068 #. type: SS
1069 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1070 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1071 #, no-wrap
1072 msgid "Linux notes"
1073 msgstr "Notas sobre Linux"
1074
1075 #. type: Plain text
1076 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1077 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1078 #, fuzzy
1079 #| msgid ""
1080 #| "In the Linux kernel, a kernel-scheduled thread is not a distinct "
1081 #| "construct from a process. Instead, a thread is simply a process that is "
1082 #| "created using the Linux-unique clone(2) system call; other routines such "
1083 #| "as the portable B<pthread_create>(3) call are implemented using "
1084 #| "B<clone>(2). Thus, if two threads A and B are siblings, then thread A "
1085 #| "cannot wait on any processes forked by thread B or its descendents, "
1086 #| "because an uncle cannot wait on his nephews. In some other Unix-like "
1087 #| "systems, where multiple threads are implemented as belonging to a single "
1088 #| "process, thread A can wait on any processes forked by sibling thread B; "
1089 #| "you will have to rewrite any code that makes this assumption for it to "
1090 #| "work on Linux."
1091 msgid ""
1092 "In the Linux kernel, a kernel-scheduled thread is not a distinct construct "
1093 "from a process. Instead, a thread is simply a process that is created using "
1094 "the Linux-unique B<clone>(2) system call; other routines such as the "
1095 "portable B<pthread_create>(3) call are implemented using B<clone>(2). "
1096 "Before Linux 2.4, a thread was just a special case of a process, and as a "
1097 "consequence one thread could not wait on the children of another thread, "
1098 "even when the latter belongs to the same thread group. However, POSIX "
1099 "prescribes such functionality, and since Linux 2.4 a thread can, and by "
1100 "default will, wait on children of other threads in the same thread group."
1101 msgstr ""
1102 "No kernel do Linux, um fluxo (thread) configurado no kernel não tem uma "
1103 "construção distinta de um processo. Ao invés, um fluxo (thread) é somente um "
1104 "processo que é criado utilizando uma chamada de sistema clone(2) única ao "
1105 "Linux; outras rotinas, tais como a chamada portável B<pthread_create>(3) são "
1106 "implementadas utilizando B<clone>(2). Portanto, se dois fluxos (threads) A e "
1107 "B são irmão, então o fluxo A não pode esperar qualquer processo dividido "
1108 "pelo fluxo (thread) B ou seus descendentes, porque um processo tipo não pode "
1109 "esperar por seus processos sobrinhos. Em alguns outros sistema como o Unix, "
1110 "onde multiplos fluxos (threads) são implementados como pertencentes a um "
1111 "único processo, o fluxo (thread) A pode aguardar por qualquer processo "
1112 "dividido pelo fluxo (thread) B irmão; você terá que reescrever qualquer "
1113 "código que subentenda esta caracterísca para que funcione no Linux."
1114
1115 #. commit 91c4e8ea8f05916df0c8a6f383508ac7c9e10dba
1116 #. type: Plain text
1117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1119 msgid ""
1120 "The following Linux-specific I<options> are for use with children created "
1121 "using B<clone>(2); they can also, since Linux 4.7, be used with B<waitid>():"
1122 msgstr ""
1123
1124 #. type: TP
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 #, no-wrap
1128 msgid "B<__WCLONE>"
1129 msgstr "B<__WCLONE>"
1130
1131 #. since 0.99pl10
1132 #. type: Plain text
1133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1135 msgid ""
1136 "Wait for \"clone\" children only. If omitted, then wait for \"non-clone\" "
1137 "children only. (A \"clone\" child is one which delivers no signal, or a "
1138 "signal other than B<SIGCHLD> to its parent upon termination.) This option "
1139 "is ignored if B<__WALL> is also specified."
1140 msgstr ""
1141
1142 #. type: TP
1143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1145 #, no-wrap
1146 msgid "B<__WALL> (since Linux 2.4)"
1147 msgstr "B<__WALL> (desde o Linux 2.4)"
1148
1149 #. since patch-2.3.48
1150 #. type: Plain text
1151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1153 msgid "Wait for all children, regardless of type (\"clone\" or \"non-clone\")."
1154 msgstr ""
1155
1156 #. type: TP
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 #, no-wrap
1160 msgid "B<__WNOTHREAD> (since Linux 2.4)"
1161 msgstr "B<__WNOTHREAD> (desde o Linux 2.4)"
1162
1163 #. since patch-2.4.0-test8
1164 #. type: Plain text
1165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1167 msgid ""
1168 "Do not wait for children of other threads in the same thread group. This "
1169 "was the default before Linux 2.4."
1170 msgstr ""
1171
1172 #. commit bf959931ddb88c4e4366e96dd22e68fa0db9527c
1173 #. prevents cases where an unreapable zombie is created if
1174 #. /sbin/init doesn't use __WALL.
1175 #. type: Plain text
1176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1178 msgid ""
1179 "Since Linux 4.7, the B<__WALL> flag is automatically implied if the child is "
1180 "being ptraced."
1181 msgstr ""
1182
1183 #. type: SH
1184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1186 #, no-wrap
1187 msgid "BUGS"
1188 msgstr "BUGS"
1189
1190 #. type: Plain text
1191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1193 msgid ""
1194 "According to POSIX.1-2008, an application calling B<waitid>() must ensure "
1195 "that I<infop> points to a I<siginfo_t> structure (i.e., that it is a non-"
1196 "null pointer). On Linux, if I<infop> is NULL, B<waitid>() succeeds, and "
1197 "returns the process ID of the waited-for child. Applications should avoid "
1198 "relying on this inconsistent, nonstandard, and unnecessary feature."
1199 msgstr ""
1200
1201 #. type: SH
1202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1204 #, no-wrap
1205 msgid "EXAMPLES"
1206 msgstr "EXEMPLOS"
1207
1208 #. fork.2 refers to this example program.
1209 #. type: Plain text
1210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1212 msgid ""
1213 "The following program demonstrates the use of B<fork>(2) and B<waitpid>(). "
1214 "The program creates a child process. If no command-line argument is "
1215 "supplied to the program, then the child suspends its execution using "
1216 "B<pause>(2), to allow the user to send signals to the child. Otherwise, if "
1217 "a command-line argument is supplied, then the child exits immediately, using "
1218 "the integer supplied on the command line as the exit status. The parent "
1219 "process executes a loop that monitors the child using B<waitpid>(), and uses "
1220 "the W*() macros described above to analyze the wait status value."
1221 msgstr ""
1222
1223 #. type: Plain text
1224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1226 msgid "The following shell session demonstrates the use of the program:"
1227 msgstr ""
1228
1229 #. type: Plain text
1230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1232 #, no-wrap
1233 msgid ""
1234 "$B< ./a.out &>\n"
1235 "Child PID is 32360\n"
1236 "[1] 32359\n"
1237 "$B< kill -STOP 32360>\n"
1238 "stopped by signal 19\n"
1239 "$B< kill -CONT 32360>\n"
1240 "continued\n"
1241 "$B< kill -TERM 32360>\n"
1242 "killed by signal 15\n"
1243 "[1]+ Done ./a.out\n"
1244 "$\n"
1245 msgstr ""
1246 "$B< ./a.out &>\n"
1247 "Child PID is 32360\n"
1248 "[1] 32359\n"
1249 "$B< kill -STOP 32360>\n"
1250 "stopped by signal 19\n"
1251 "$B< kill -CONT 32360>\n"
1252 "continued\n"
1253 "$B< kill -TERM 32360>\n"
1254 "killed by signal 15\n"
1255 "[1]+ Done ./a.out\n"
1256 "$\n"
1257
1258 #. type: SS
1259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1261 #, no-wrap
1262 msgid "Program source"
1263 msgstr "Fonte do programa"
1264
1265 #. type: Plain text
1266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1268 #, no-wrap
1269 msgid ""
1270 "#include E<lt>stdint.hE<gt>\n"
1271 "#include E<lt>stdio.hE<gt>\n"
1272 "#include E<lt>stdlib.hE<gt>\n"
1273 "#include E<lt>sys/types.hE<gt>\n"
1274 "#include E<lt>sys/wait.hE<gt>\n"
1275 "#include E<lt>unistd.hE<gt>\n"
1276 "\\&\n"
1277 "int\n"
1278 "main(int argc, char *argv[])\n"
1279 "{\n"
1280 " int wstatus;\n"
1281 " pid_t cpid, w;\n"
1282 "\\&\n"
1283 " cpid = fork();\n"
1284 " if (cpid == -1) {\n"
1285 " perror(\"fork\");\n"
1286 " exit(EXIT_FAILURE);\n"
1287 " }\n"
1288 "\\&\n"
1289 " if (cpid == 0) { /* Code executed by child */\n"
1290 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1291 " if (argc == 1)\n"
1292 " pause(); /* Wait for signals */\n"
1293 " _exit(atoi(argv[1]));\n"
1294 "\\&\n"
1295 " } else { /* Code executed by parent */\n"
1296 " do {\n"
1297 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1298 " if (w == -1) {\n"
1299 " perror(\"waitpid\");\n"
1300 " exit(EXIT_FAILURE);\n"
1301 " }\n"
1302 "\\&\n"
1303 " if (WIFEXITED(wstatus)) {\n"
1304 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1305 " } else if (WIFSIGNALED(wstatus)) {\n"
1306 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1307 " } else if (WIFSTOPPED(wstatus)) {\n"
1308 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1309 " } else if (WIFCONTINUED(wstatus)) {\n"
1310 " printf(\"continued\\[rs]n\");\n"
1311 " }\n"
1312 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1313 " exit(EXIT_SUCCESS);\n"
1314 " }\n"
1315 "}\n"
1316 msgstr ""
1317
1318 #. SRC END
1319 #. type: SH
1320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1322 #, no-wrap
1323 msgid "SEE ALSO"
1324 msgstr "VEJA TAMBÉM"
1325
1326 #. type: Plain text
1327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1329 msgid ""
1330 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1331 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1332 "B<core>(5), B<credentials>(7), B<signal>(7)"
1333 msgstr ""
1334 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1335 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1336 "B<core>(5), B<credentials>(7), B<signal>(7)"
1337
1338 #. type: TH
1339 #: debian-trixie
1340 #, no-wrap
1341 msgid "2024-06-15"
1342 msgstr "15 junho 2024"
1343
1344 #. type: TH
1345 #: debian-trixie
1346 #, no-wrap
1347 msgid "Linux man-pages 6.9.1"
1348 msgstr "Linux man-pages 6.9.1"
1349
1350 #. type: Plain text
1351 #: debian-trixie
1352 msgid "Standard C library (I<libc>, I<-lc>)"
1353 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
1354
1355 #. type: Plain text
1356 #: debian-trixie
1357 #, no-wrap
1358 msgid ""
1359 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1360 " /* This is the glibc and POSIX interface; see\n"
1361 " NOTES for information on the raw system call. */\n"
1362 msgstr ""
1363
1364 #. type: TP
1365 #: debian-trixie fedora-44 fedora-rawhide
1366 #, no-wrap
1367 msgid "B<WCOREDUMP(>I<wstatus>B<)>"
1368 msgstr "B<WCOREDUMP(>I<wstatus>B<)>"
1369
1370 #. type: Plain text
1371 #: debian-trixie fedora-44 fedora-rawhide
1372 msgid ""
1373 "This macro is not specified in POSIX.1-2001 and is not available on some "
1374 "UNIX implementations (e.g., AIX, SunOS). Therefore, enclose its use inside "
1375 "I<#ifdef WCOREDUMP ... #endif>."
1376 msgstr ""
1377
1378 #. type: TP
1379 #: debian-trixie fedora-44 fedora-rawhide
1380 #, no-wrap
1381 msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
1382 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1383
1384 #. type: TP
1385 #: debian-trixie fedora-44 fedora-rawhide
1386 #, no-wrap
1387 msgid "I<idtype> == B<P_PID>"
1388 msgstr "I<idtype> == B<P_PID>"
1389
1390 #. type: TP
1391 #: debian-trixie fedora-44 fedora-rawhide
1392 #, no-wrap
1393 msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
1394 msgstr "I<idtype> == B<P_PIDFD> (desde o Linux 5.4)"
1395
1396 #. type: TP
1397 #: debian-trixie fedora-44 fedora-rawhide
1398 #, no-wrap
1399 msgid "I<idtype> == B<P_PGID>"
1400 msgstr "I<idtype> == B<P_PGID>"
1401
1402 #. type: TP
1403 #: debian-trixie fedora-44 fedora-rawhide
1404 #, no-wrap
1405 msgid "I<idtype> == B<P_ALL>"
1406 msgstr "I<idtype> == B<P_ALL>"
1407
1408 #. type: Plain text
1409 #: debian-trixie fedora-44 fedora-rawhide
1410 #, fuzzy
1411 #| msgid ""
1412 #| "if the process specified in I<pid> does not exist or is not a child of "
1413 #| "the calling process. (This can happen for one's own child if the action "
1414 #| "for SIGCHLD is set to SIG_IGN. See also the NOTES section about threads.)"
1415 msgid ""
1416 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
1417 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
1418 "not a child of the calling process. (This can happen for one's own child if "
1419 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux Notes> "
1420 "section about threads.)"
1421 msgstr ""
1422 "Se o processo especificado em I<pid> não existe ou não é um processo filho "
1423 "do processo que está chamando. (Isto porde acontecer com o próprio processo "
1424 "filho se uma ação para SIGCHLD é configurada para SIG_IGN. Veja também a "
1425 "seção NOTAS sobre 'threads'.)"
1426
1427 #. type: Plain text
1428 #: debian-trixie fedora-44 fedora-rawhide
1429 msgid "POSIX.1-2008."
1430 msgstr "POSIX.1-2008."
1431
1432 #. type: TH
1433 #: fedora-44 fedora-rawhide
1434 #, no-wrap
1435 msgid "2024-07-23"
1436 msgstr "23 julho 2024"
1437
1438 #. type: TH
1439 #: fedora-44 fedora-rawhide
1440 #, no-wrap
1441 msgid "Linux man-pages 6.13"
1442 msgstr "Linux man-pages 6.13"
1443
1444 #. type: Plain text
1445 #: fedora-44 fedora-rawhide
1446 #, no-wrap
1447 msgid ""
1448 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1449 " /* This is the glibc and POSIX interface; see\n"
1450 " VERSIONS for information on the raw system call. */\n"
1451 msgstr ""
1452
1453 #. type: TH
1454 #: mageia-cauldron
1455 #, no-wrap
1456 msgid "Linux man-pages 6.17"
1457 msgstr "Linux man-pages 6.17"
1458
1459 #. type: TH
1460 #: opensuse-leap-16-1 opensuse-tumbleweed
1461 #, no-wrap
1462 msgid "Linux man-pages (unreleased)"
1463 msgstr "Linux man-pages (não lançado)"