Debian Codegraph @

po/fr/man2/wait.2.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012, 2013.
18 # Cédric Boutillier <[email protected]>, 2011, 2012, 2013.
19 # Frédéric Hantrais <[email protected]>, 2013, 2014.
20 # Jean-Pierre Giraud <[email protected]>, 2022-2026.
21 msgid ""
22 msgstr ""
23 "Project-Id-Version: manpages-l10n 4.29.0\n"
24 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
25 "PO-Revision-Date: 2026-03-28 10:42+0100\n"
26 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
27 "Language-Team: French <[email protected]>\n"
28 "Language: fr\n"
29 "MIME-Version: 1.0\n"
30 "Content-Type: text/plain; charset=UTF-8\n"
31 "Content-Transfer-Encoding: 8bit\n"
32 "Plural-Forms: nplurals=2; plural=n > 1;\n"
33 "X-Generator: Lokalize 22.12.3\n"
34
35 #. type: TH
36 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
37 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "wait"
40 msgstr "wait"
41
42 #. type: TH
43 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
44 #: opensuse-tumbleweed
45 #, no-wrap
46 msgid "2026-02-08"
47 msgstr "8 février 2026"
48
49 #. type: TH
50 #: archlinux debian-unstable
51 #, no-wrap
52 msgid "Linux man-pages 6.18"
53 msgstr "Pages du manuel de Linux 6.18"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "NAME"
60 msgstr "NOM"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "wait, waitpid, waitid - wait for process to change state"
66 msgstr "wait, waitpid, waitid - Attendre la fin d'un processus"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "LIBRARY"
73 msgstr "BIBLIOTHÈQUE"
74
75 #. type: Plain text
76 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
77 #: opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "Standard C library (I<libc>,\\ I<-lc>)"
79 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "SYNOPSIS"
86 msgstr "SYNOPSIS"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "B<#include E<lt>sys/wait.hE<gt>>\n"
93 msgstr "B<#include E<lt>sys/wait.hE<gt>>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
101 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
102 msgstr ""
103 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
104 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
105
106 #. type: Plain text
107 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
108 #: opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
112 " /* This is the glibc and POSIX interface; see\n"
113 " VERSIONS for information on the raw system call. */\n"
114 msgstr ""
115 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
116 " /* Il s'agit de l'interface de glibc et POSIX ; consultez les\n"
117 " VERSIONS pour des informations sur les appels système bruts. */\n"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
124 msgstr ""
125 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
126 "B<feature_test_macros>(7)) :"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid "B<waitid>():"
132 msgstr "B<waitid>() :"
133
134 #. (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid ""
140 " Since glibc 2.26:\n"
141 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
142 " glibc 2.25 and earlier:\n"
143 " _XOPEN_SOURCE\n"
144 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
145 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
146 msgstr ""
147 " Depuis la glibc 2.26 :\n"
148 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
149 " Pour la glibc antérieure et égale à 2.25 :\n"
150 " _XOPEN_SOURCE\n"
151 " || /* Depuis la glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
152 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
153
154 #. type: SH
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "DESCRIPTION"
159 msgstr "DESCRIPTION"
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 "All of these system calls are used to wait for state changes in a child of "
166 "the calling process, and obtain information about the child whose state has "
167 "changed. A state change is considered to be: the child terminated; the "
168 "child was stopped by a signal; or the child was resumed by a signal. In the "
169 "case of a terminated child, performing a wait allows the system to release "
170 "the resources associated with the child; if a wait is not performed, then "
171 "the terminated child remains in a \"zombie\" state (see NOTES below)."
172 msgstr ""
173 "Tous ces appels système attendent qu'un des enfants du processus appelant "
174 "change d'état et permettent d'obtenir des informations sur l'enfant en "
175 "question. Un processus est considéré comme changeant d'état s'il termine, "
176 "s'il est stoppé par un signal ou s'il est relancé par un signal. Dans le cas "
177 "d'un enfant qui se termine, l'attendre permet au système de libérer les "
178 "ressources qui lui étaient allouées\\ ; si le processus n'est pas attendu, "
179 "il reste en état de «\\ zombie\\ » (voir les NOTES plus bas)."
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "If a child has already changed state, then these calls return immediately. "
186 "Otherwise, they block until either a child changes state or a signal handler "
187 "interrupts the call (assuming that system calls are not automatically "
188 "restarted using the B<SA_RESTART> flag of B<sigaction>(2)). In the "
189 "remainder of this page, a child whose state has changed and which has not "
190 "yet been waited upon by one of these system calls is termed I<waitable>."
191 msgstr ""
192 "Si un enfant a déjà changé d'état, ces appels système retournent "
193 "immédiatement. Sinon, ils bloquent jusqu'à ce qu'un enfant change d'état ou "
194 "qu'un gestionnaire de signal interrompe l'appel (sauf si les appels système "
195 "sont relancés automatiquement par l'option B<SA_RESTART> de "
196 "B<sigaction>(2)). Dans la suite de cette page, un enfant qui a changé d'état "
197 "et qui n'a pas été attendu est appelé I<prêt> (I<waitable>)."
198
199 #. type: SS
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "wait() and waitpid()"
204 msgstr "wait() et waitpid()"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "The B<wait>() system call suspends execution of the calling thread until "
211 "one of its children terminates. The call I<wait(&wstatus)> is equivalent to:"
212 msgstr ""
213 "L'appel système B<wait>() suspend l'exécution du processus appelant jusqu'à "
214 "ce que l'un de ses enfants se termine. L'appel I<wait(&status)> est "
215 "équivalent à\\ :"
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "waitpid(-1, &wstatus, 0);\n"
222 msgstr "waitpid(-1, &wstatus, 0);\n"
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "The B<waitpid>() system call suspends execution of the calling thread until "
229 "a child specified by I<pid> argument has changed state. By default, "
230 "B<waitpid>() waits only for terminated children, but this behavior is "
231 "modifiable via the I<options> argument, as described below."
232 msgstr ""
233 "L'appel système B<waitpid>() suspend l'exécution du processus appelant "
234 "jusqu'à ce qu'un enfant spécifié par l'argument I<pid> change d'état. Par "
235 "défaut, B<waitpid>() n'attend que les enfants terminés, mais ce comportement "
236 "peut être modifié par l'argument I<options>, de la façon décrite ci-dessous."
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid "The value of I<pid> can be:"
242 msgstr "La valeur de I<pid> peut être l'une des suivantes\\ :"
243
244 #. type: TP
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "E<lt> B<-1>"
249 msgstr "E<lt> B<-1>"
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "meaning wait for any child process whose process group ID is equal to the "
256 "absolute value of I<pid>."
257 msgstr ""
258 "Attendre la fin de n'importe quel processus enfant appartenant au groupe de "
259 "processus d'ID I<-pid>."
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<-1>"
266 msgstr "B<-1>"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid "meaning wait for any child process."
272 msgstr "Attendre n'importe lequel des processus enfant."
273
274 #. type: TP
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "B<0>"
279 msgstr "B<0>"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "meaning wait for any child process whose process group ID is equal to that "
286 "of the calling process at the time of the call to B<waitpid>()."
287 msgstr ""
288 "Attendre la fin de n'importe quel processus enfant dont l'identifiant de "
289 "groupe du processus est égal à celui du processus appelant au moment de "
290 "l'appel à B<waitpid>()."
291
292 #. type: TP
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "E<gt> B<0>"
297 msgstr "E<gt> B<0>"
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "meaning wait for the child whose process ID is equal to the value of I<pid>."
304 msgstr ""
305 "Attendre la fin d'un enfant dont l'identifiant du processus est égal à la "
306 "valeur du processus numéro I<pid>."
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 msgid ""
312 "The value of I<options> is an OR of zero or more of the following constants:"
313 msgstr ""
314 "La valeur de l'argument option I<options> est un I<OU> binaire entre zéro ou "
315 "plus des constantes suivantes\\ :"
316
317 #. type: TP
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<WNOHANG>"
322 msgstr "B<WNOHANG>"
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "return immediately if no child has exited."
328 msgstr "Ne pas bloquer si aucun enfant ne s'est terminé."
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<WUNTRACED>"
335 msgstr "B<WUNTRACED>"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "also return if a child has stopped (but not traced via B<ptrace>(2)). "
342 "Status for I<traced> children which have stopped is provided even if this "
343 "option is not specified."
344 msgstr ""
345 "Recevoir l'information concernant également les enfants bloqués (mais non "
346 "suivis par B<ptrace>(2)). L'état des enfants suivis qui se sont terminés est "
347 "fourni même sans cette option."
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<WCONTINUED> (since Linux 2.6.10)"
354 msgstr "B<WCONTINUED> (Depuis Linux 2.6.10)"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "also return if a stopped child has been resumed by delivery of B<SIGCONT>."
361 msgstr ""
362 "Renvoyer également si un processus enfant stoppé a été relancé par le signal "
363 "B<SIGCONT>."
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid "(For Linux-only options, see below.)"
369 msgstr "(Pour les options spécifiques à Linux, voir plus bas.)"
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "If I<wstatus> is not NULL, B<wait>() and B<waitpid>() store status "
376 "information in the I<int> to which it points. This integer can be inspected "
377 "with the following macros (which take the integer itself as an argument, not "
378 "a pointer to it, as is done in B<wait>() and B<waitpid>()!):"
379 msgstr ""
380 "Si I<wstatus> n'est pas NULL, B<wait>() et B<waitpid>() stockent l'état de "
381 "l'enfant dans la variable de type I<int> pointée. Cet entier peut être "
382 "évalué avec les macros suivantes (qui prennent l'entier lui-même comme "
383 "argument, et pas un pointeur vers celui-ci, comme le font B<wait>() et "
384 "B<waitpid>()\\ !)\\ :"
385
386 #. type: TP
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "B<WIFEXITED(>I<wstatus>B<)>"
391 msgstr "B<WIFEXITED(>I<wstatus>B<)>"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "returns true if the child terminated normally, that is, by calling "
398 "B<exit>(3) or B<_exit>(2), or by returning from main()."
399 msgstr ""
400 "Vrai si l'enfant s'est terminé normalement, c'est-à-dire par un appel à "
401 "B<exit>(3) ou B<_exit>(2) ou par un I<return> depuis main()."
402
403 #. type: TP
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "B<WEXITSTATUS(>I<wstatus>B<)>"
408 msgstr "B<WEXITSTATUS(>I<wstatus>B<)>"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid ""
414 "returns the exit status of the child. This consists of the least "
415 "significant 8 bits of the I<status> argument that the child specified in a "
416 "call to B<exit>(3) or B<_exit>(2) or as the argument for a return "
417 "statement in main(). This macro should be employed only if B<WIFEXITED> "
418 "returned true."
419 msgstr ""
420 "Donne le code de retour, consistant en les 8 bits de poids faible du "
421 "paramètre I<status> fourni à B<exit>(3) ou B<_exit>(2) ou dans le I<return> "
422 "de la routine main(). Cette macro ne peut être évaluée que si B<WIFEXITED> a "
423 "renvoyé vrai."
424
425 #. type: TP
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "B<WIFSIGNALED(>I<wstatus>B<)>"
430 msgstr "B<WIFSIGNALED(>I<wstatus>B<)>"
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid "returns true if the child process was terminated by a signal."
436 msgstr "Vrai si l'enfant s'est terminé à cause d'un signal."
437
438 #. type: TP
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "B<WTERMSIG(>I<wstatus>B<)>"
443 msgstr "B<WTERMSIG(>I<wstatus>B<)>"
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "returns the number of the signal that caused the child process to "
450 "terminate. This macro should be employed only if B<WIFSIGNALED> returned "
451 "true."
452 msgstr ""
453 "Donne le numéro du signal qui a causé la fin de l'enfant. Cette macro ne "
454 "peut être évaluée que si B<WIFSIGNALED> a renvoyé vrai."
455
456 #. type: TP
457 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
458 #: opensuse-tumbleweed
459 #, no-wrap
460 msgid "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
461 msgstr "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "returns true if the child produced a core dump (see B<core>(5)). This macro "
468 "should be employed only if B<WIFSIGNALED> returned true."
469 msgstr ""
470 "Vrai si le processus enfant a produit une image mémoire («\\ core dump\\ ») "
471 "(voir B<core>(5)). Cette macro ne doit être évaluée que si B<WIFSIGNALED> a "
472 "renvoyé vrai."
473
474 #. type: TP
475 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
476 #: opensuse-tumbleweed
477 #, no-wrap
478 msgid "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
479 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
480
481 #. type: Plain text
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "returns true if the child process was stopped by delivery of a signal; this "
486 "is possible only if the call was done using B<WUNTRACED> or when the child "
487 "is being traced (see B<ptrace>(2))."
488 msgstr ""
489 "Vrai si le processus enfant a été arrêté par l'envoi d'un signal. Cela n'est "
490 "possible que si l'on a effectué l'appel avec l'option B<WUNTRACED> ou si "
491 "l'enfant est suivi (voir B<ptrace>(2))."
492
493 # no-wrap
494 #. type: TP
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "B<WSTOPSIG(>I<wstatus>B<)>"
499 msgstr "B<WSTOPSIG(>I<wstatus>B<)>"
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "returns the number of the signal which caused the child to stop. This macro "
506 "should be employed only if B<WIFSTOPPED> returned true."
507 msgstr ""
508 "Donne le numéro du signal qui a causé l'arrêt de l'enfant. Cette macro ne "
509 "peut être évaluée que si B<WIFSTOPPED> renvoie vrai."
510
511 #. type: TP
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "B<WIFCONTINUED(>I<wstatus>B<)>"
516 msgstr "B<WIFCONTINUED(>I<wstatus>B<)>"
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "(since Linux 2.6.10) returns true if the child process was resumed by "
523 "delivery of B<SIGCONT>."
524 msgstr ""
525 "(Depuis Linux 2.6.10) Vrai si le processus enfant a été relancé par "
526 "B<SIGCONT>."
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 "L'appel système B<waitid>(), disponible depuis Linux 2.6.9, fournit des "
543 "moyens plus fins de contrôler quels changements d'états attendre."
544
545 #. type: Plain text
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 msgid ""
549 "The I<idtype> and I<id> arguments select the child(ren) to wait for, as "
550 "follows:"
551 msgstr ""
552 "Les arguments I<idtype> et I<id> sélectionnent le(s) enfant(s) à attendre, "
553 "comme suit\\ :"
554
555 #. type: TP
556 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
557 #: opensuse-tumbleweed
558 #, no-wrap
559 msgid "I<idtype> == \\f[B]P_PID\\fR"
560 msgstr "I<idtype> == \\f[B]P_PID\\fR"
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid "Wait for the child whose process ID matches I<id>."
566 msgstr ""
567 "Attendre la fin de l'enfant dont l'identifiant du processus correspond à "
568 "I<id>."
569
570 #. type: TP
571 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
572 #: opensuse-tumbleweed
573 #, no-wrap
574 msgid "I<idtype> == \\f[B]P_PIDFD\\fR (since Linux 5.4)"
575 msgstr "I<idtype> == \\f[B]P_PIDFD\\fR (depuis Linux 5.4)"
576
577 #. commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
578 #. type: Plain text
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "Wait for the child referred to by the PID file descriptor specified in "
583 "I<id>. (See B<pidfd_open>(2) for further information on PID file "
584 "descriptors.)"
585 msgstr ""
586 "Attendre la fin de l'enfant auquel fait référence le descripteur de fichier "
587 "PID spécifié dans I<id> (voir B<pidfd_open>(2) pour plus d'informations à "
588 "propos des descripteurs de fichier PID)."
589
590 #. type: TP
591 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
592 #: opensuse-tumbleweed
593 #, no-wrap
594 msgid "I<idtype> == \\f[B]P_PGID\\fR"
595 msgstr "I<idtype> == \\f[B]P_PGID\\fR"
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 "Attendre la fin de l'enfant dont l'identifiant de groupe du processus "
607 "correspond à I<id>. depuis Linux 5.4, si I<id> vaut zéro, attendre pour "
608 "n'importe quel enfant qui est dans le même groupe de processus que le groupe "
609 "de processus de l'appelant au moment de l'appel."
610
611 #. type: TP
612 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
613 #: opensuse-tumbleweed
614 #, no-wrap
615 msgid "I<idtype> == \\f[B]P_ALL\\fR"
616 msgstr "I<idtype> == \\f[B]P_ALL\\fR"
617
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 msgid "Wait for any child; I<id> is ignored."
622 msgstr "Attendre n'importe quel enfant\\ ; l'argument I<id> est ignoré."
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid ""
628 "The child state changes to wait for are specified by ORing one or more of "
629 "the following flags in I<options>:"
630 msgstr ""
631 "Les changements d'état à attendre sont indiqués par un OU binaire des "
632 "attributs suivants dans le paramètre I<options>\\ :"
633
634 #. type: TP
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "B<WEXITED>"
639 msgstr "B<WEXITED>"
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid "Wait for children that have terminated."
645 msgstr "Attendre les enfants qui se sont terminés."
646
647 #. type: TP
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "B<WSTOPPED>"
652 msgstr "B<WSTOPPED>"
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 msgid "Wait for children that have been stopped by delivery of a signal."
658 msgstr "Attendre les enfants qui ont été arrêtés par un signal."
659
660 #. type: TP
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 #, no-wrap
664 msgid "B<WCONTINUED>"
665 msgstr "B<WCONTINUED>"
666
667 #. type: Plain text
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 msgid ""
671 "Wait for (previously stopped) children that have been resumed by delivery of "
672 "B<SIGCONT>."
673 msgstr ""
674 "Attendre les enfants précédemment arrêtés qui ont été relancés par le signal "
675 "B<SIGCONT>."
676
677 #. type: Plain text
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 msgid "The following flags may additionally be ORed in I<options>:"
681 msgstr ""
682 "Les attributs suivants peuvent également être utilisés dans I<options>\\ :"
683
684 #. type: Plain text
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 msgid "As for B<waitpid>()."
688 msgstr "Comme pour B<waitpid>()."
689
690 #. type: TP
691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
693 #, no-wrap
694 msgid "B<WNOWAIT>"
695 msgstr "B<WNOWAIT>"
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 "Leave the child in a waitable state; a later wait call can be used to again "
702 "retrieve the child status information."
703 msgstr ""
704 "Laisser l'enfant dans un état prêt\\ ; un appel ultérieur à wait() pourra de "
705 "nouveau fournir des informations sur l'état de l'enfant."
706
707 #. type: Plain text
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 msgid ""
711 "Upon successful return, B<waitid>() fills in the following fields of the "
712 "I<siginfo_t> structure pointed to by I<infop>:"
713 msgstr ""
714 "Si l'appel réussit, B<waitid>() remplit les champs suivants de la structure "
715 "I<siginfo_t> pointée par I<infop>\\ :"
716
717 #. type: TP
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 #, no-wrap
721 msgid "I<si_pid>"
722 msgstr "I<si_pid>"
723
724 #. type: Plain text
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 msgid "The process ID of the child."
728 msgstr "L'identifiant de processus de l'enfant."
729
730 #. type: TP
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 #, no-wrap
734 msgid "I<si_uid>"
735 msgstr "I<si_uid>"
736
737 #. type: Plain text
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 msgid ""
741 "The real user ID of the child. (This field is not set on most other "
742 "implementations.)"
743 msgstr ""
744 "L'UID réel de l'enfant. Ce champ n'est pas rempli par la plupart des autres "
745 "implémentations."
746
747 #. type: TP
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 #, no-wrap
751 msgid "I<si_signo>"
752 msgstr "I<si_signo>"
753
754 #. type: Plain text
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 msgid "Always set to B<SIGCHLD>."
758 msgstr "Toujours B<SIGCHLD>."
759
760 #. type: TP
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 #, no-wrap
764 msgid "I<si_status>"
765 msgstr "I<si_status>"
766
767 #. type: Plain text
768 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
769 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
770 msgid ""
771 "Either the exit status of the child, as given to B<_exit>(2) (or "
772 "B<exit>(3)), or the signal that caused the child to terminate, stop, or "
773 "continue. The I<si_code> field can be used to determine how to interpret "
774 "this field."
775 msgstr ""
776 "Soit le code de retour de l'enfant donné à B<_exit>(2) ou B<exit>(3), soit "
777 "le signal ayant provoqué la terminaison, l'arrêt ou la relance de l'enfant. "
778 "Le champ I<si_code> permet de savoir comment interpréter ce champ."
779
780 #. type: TP
781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
783 #, no-wrap
784 msgid "I<si_code>"
785 msgstr "I<si_code>"
786
787 #. type: Plain text
788 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
789 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
790 msgid ""
791 "Set to one of: B<CLD_EXITED> (child called B<_exit>(2)); B<CLD_KILLED> "
792 "(child killed by signal); B<CLD_DUMPED> (child killed by signal, and dumped "
793 "core); B<CLD_STOPPED> (child stopped by signal); B<CLD_TRAPPED> (traced "
794 "child has trapped); or B<CLD_CONTINUED> (child continued by B<SIGCONT>)."
795 msgstr ""
796 "L'un de B<CLD_EXITED> (l'enfant a appelé B<_exit>(2)), B<CLD_KILLED> "
797 "(l'enfant a été tué par un signal), B<CLD_DUMPED> (l'enfant a été tué par un "
798 "signal et a produit une image mémoire (core dump)), B<CLD_STOPPED> (l'enfant "
799 "a été arrêté par un signal), B<CLD_TRAPPED> (l'enfant suivi a été capturé) "
800 "ou B<CLD_CONTINUED> (l'enfant a été relancé par B<SIGCONT>)."
801
802 #. type: Plain text
803 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
804 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
805 msgid ""
806 "If B<WNOHANG> was specified in I<options> and there were no children in a "
807 "waitable state, then B<waitid>() returns 0 immediately and the state of the "
808 "I<siginfo_t> structure pointed to by I<infop> depends on the "
809 "implementation. To (portably) distinguish this case from that where a child "
810 "was in a waitable state, zero out the I<si_pid> field before the call and "
811 "check for a nonzero value in this field after the call returns."
812 msgstr ""
813 "Si B<WNOHANG> est utilisé dans I<options> et si aucun enfant n'est prêt, "
814 "B<waitid>() renvoie B<0> immédiatement et l'état de la structure "
815 "I<siginfo_t> pointée par I<infop> dépend de l'implémentation. Pour "
816 "différencier (de façon portable) ce cas de celui où un des enfants était "
817 "prêt, définissez à zéro le champ I<si_pid> avant l'appel, et vérifiez que sa "
818 "valeur est différente de zéro après le renvoi de l'appel."
819
820 #. POSIX.1-2001 leaves this possibility unspecified; most
821 #. implementations (including Linux) zero out the structure
822 #. in this case, but at least one implementation (AIX 5.1)
823 #. does not -- MTK Nov 04
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 "POSIX.1-2008 Technical Corrigendum 1 (2013) adds the requirement that when "
829 "B<WNOHANG> is specified in I<options> and there were no children in a "
830 "waitable state, then B<waitid>() should zero out the I<si_pid> and "
831 "I<si_signo> fields of the structure. On Linux and other implementations "
832 "that adhere to this requirement, it is not necessary to zero out the "
833 "I<si_pid> field before calling B<waitid>(). However, not all "
834 "implementations follow the POSIX.1 specification on this point."
835 msgstr ""
836 "Le premier rectificatif technique POSIX.1-2008 (2013) ajoute l'exigence que "
837 "quand B<WNOHANG> est spécifié dans I<options> et si aucun enfant n'est prêt, "
838 "B<waitid>() doit définir à zéro les champs I<si_pid> et I<si_signo> de la "
839 "structure. Dans Linux et d'autres implémentations qui respectent cette "
840 "exigence, il n'est pas nécessaire de définir à zéro le champ I<si_pid> avant "
841 "l'appel à B<waitid>(). Néanmoins, toutes les implémentations ne suivent pas "
842 "la spécification de POSIX.1 sur ce point."
843
844 #. type: SH
845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
847 #, no-wrap
848 msgid "RETURN VALUE"
849 msgstr "VALEUR RENVOYÉE"
850
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid ""
855 "B<wait>(): on success, returns the process ID of the terminated child; on "
856 "failure, -1 is returned."
857 msgstr ""
858 "B<wait>()\\ : en cas de réussite, l'identifiant du processus enfant terminé "
859 "est renvoyé\\ ; en cas d'échec, la valeur de retour est B<-1>."
860
861 #. type: Plain text
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 msgid ""
865 "B<waitpid>(): on success, returns the process ID of the child whose state "
866 "has changed; if B<WNOHANG> was specified and one or more child(ren) "
867 "specified by I<pid> exist, but have not yet changed state, then 0 is "
868 "returned. On failure, -1 is returned."
869 msgstr ""
870 "B<waitpid>()\\ : s'il réussit, l'appel renvoie l'identifiant du processus "
871 "enfant dont l'état a changé\\ ; si B<WNOHANG> est utilisé et si un enfant "
872 "(ou plus) spécifié par I<pid> existe, mais n'a pas encore changé d'état, la "
873 "valeur renvoyée est B<0>. En cas d'échec, B<-1> est renvoyé."
874
875 #. FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
876 #. returns the PID of the child. Either this is a bug, or it is intended
877 #. behavior that needs to be documented. See my Jan 2009 LKML mail
878 #. "waitid() return value strangeness when infop is NULL".
879 #. type: Plain text
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 msgid ""
883 "B<waitid>(): returns 0 on success or if B<WNOHANG> was specified and no "
884 "child(ren) specified by I<id> has yet changed state; on failure, -1 is "
885 "returned."
886 msgstr ""
887 "B<waitid>() : renvoie B<0> s'il réussit ou si B<WNOHANG> est utilisé et "
888 "siaucun enfant spécifié dans I<id> n'a encore changé d'état. En cas d'échec, "
889 "renvoie B<-1>."
890
891 #. type: Plain text
892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
894 msgid "On failure, each of these calls sets I<errno> to indicate the error."
895 msgstr ""
896 "En cas d'échec, chacun de ces appels définit I<errno> pour préciser l'erreur."
897
898 #. type: SH
899 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
900 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
901 #, no-wrap
902 msgid "ERRORS"
903 msgstr "ERREURS"
904
905 #. type: TP
906 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
907 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
908 #, no-wrap
909 msgid "B<EAGAIN>"
910 msgstr "B<EAGAIN>"
911
912 #. type: Plain text
913 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
914 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
915 msgid ""
916 "The PID file descriptor specified in I<id> is nonblocking and the process "
917 "that it refers to has not terminated."
918 msgstr ""
919 "Le descripteur de fichier PID spécifié dans I<id> n'est pas bloquant et le "
920 "processus auquel il fait référence ne s'est pas terminé."
921
922 #. type: TP
923 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
924 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
925 #, no-wrap
926 msgid "B<ECHILD>"
927 msgstr "B<ECHILD>"
928
929 #. type: Plain text
930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
932 msgid ""
933 "(for B<wait>()) The calling process does not have any unwaited-for children."
934 msgstr ""
935 "(pour B<wait>()) Le processus appelant n'a pas d'enfants qui n'ont pas été "
936 "attendus."
937
938 #. type: Plain text
939 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
940 #: opensuse-tumbleweed
941 msgid ""
942 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
943 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
944 "not a child of the calling process. (This can happen for one's own child if "
945 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux\\ "
946 "Notes> section about threads.)"
947 msgstr ""
948 "(pour B<waitpid>() ou B<waitid>()) Le processus indiqué par I<pid> "
949 "(B<waitpid>()) ou I<idtype> et I<id> (B<waitid>()) n'existe pas ou n'est pas "
950 "un enfant du processus appelant. (Cela peut arriver pour son propre enfant "
951 "si l'action de B<SIGCHLD> est définie à B<SIG_IGN> ; voir également le "
952 "passage de la section I<Notes sur Linux> concernant les threads.)"
953
954 #. type: TP
955 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
956 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
957 #, no-wrap
958 msgid "B<EINTR>"
959 msgstr "B<EINTR>"
960
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 msgid ""
965 "B<WNOHANG> was not set and an unblocked signal or a B<SIGCHLD> was caught; "
966 "see B<signal>(7)."
967 msgstr ""
968 "B<WNOHANG> n'est pas indiqué et un signal à intercepter ou B<SIGCHLD> a été "
969 "reçu ; consultez B<signal>(7)."
970
971 #. type: TP
972 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
973 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
974 #, no-wrap
975 msgid "B<EINVAL>"
976 msgstr "B<EINVAL>"
977
978 #. type: Plain text
979 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
980 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
981 msgid "The I<options> argument was invalid."
982 msgstr "L'argument I<options> n'est pas valable."
983
984 #. type: TP
985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
987 #, no-wrap
988 msgid "B<ESRCH>"
989 msgstr "B<ESRCH>"
990
991 #. type: Plain text
992 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
993 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
994 msgid "(for B<wait>() or B<waitpid>()) I<pid> is equal to B<INT_MIN>."
995 msgstr "(pour B<wait>() ou B<waitpid>()) I<pid> est équivalent à B<INT_MIN>."
996
997 #. type: SH
998 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
999 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1000 #, no-wrap
1001 msgid "VERSIONS"
1002 msgstr "VERSIONS"
1003
1004 #. type: SS
1005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1007 #, no-wrap
1008 msgid "C library/kernel differences"
1009 msgstr "Différences entre bibliothèque C et noyau"
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid ""
1015 "B<wait>() is actually a library function that (in glibc) is implemented as "
1016 "a call to B<wait4>(2)."
1017 msgstr ""
1018 "B<wait>() est en fait une fonction de bibliothèque implémentée (dans glibc) "
1019 "en tant qu'appel système à B<wait4>()."
1020
1021 #. e.g., i386 has the system call, but not x86-64
1022 #. type: Plain text
1023 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1024 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1025 msgid ""
1026 "On some architectures, there is no B<waitpid>() system call; instead, this "
1027 "interface is implemented via a C library wrapper function that calls "
1028 "B<wait4>(2)."
1029 msgstr ""
1030 "sur certaines architectures, il n'y a pas d'appel système B<waitpid>() ; à "
1031 "la place, cette interface est implémentée au moyen d'une fonction "
1032 "d'enveloppe de la bibliothèque C qui appelle B<wait4>(2)."
1033
1034 #. type: Plain text
1035 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1036 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1037 msgid ""
1038 "The raw B<waitid>() system call takes a fifth argument, of type I<struct "
1039 "rusage\\ *>. If this argument is non-NULL, then it is used to return "
1040 "resource usage information about the child, in the same manner as "
1041 "B<wait4>(2). See B<getrusage>(2) for details."
1042 msgstr ""
1043 "L'appel système brut B<waitid>() prend un cinquième paramètre, de type "
1044 "I<struct rusage\\ *>. Si ce paramètre n'est pas NULL, il est utilisé pour "
1045 "renvoyer les informations d'utilisation des ressources au sujet du thread "
1046 "enfant, de la même façon que B<wait4>(2). Consultez B<getrusage>(2) pour "
1047 "plus de détails."
1048
1049 #. type: SH
1050 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1051 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1052 #, no-wrap
1053 msgid "STANDARDS"
1054 msgstr "NORMES"
1055
1056 #. type: Plain text
1057 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1058 #: opensuse-tumbleweed
1059 msgid "POSIX.1-2024."
1060 msgstr "POSIX.1-2024."
1061
1062 #. type: SH
1063 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1064 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1065 #, no-wrap
1066 msgid "HISTORY"
1067 msgstr "HISTORIQUE"
1068
1069 #. type: Plain text
1070 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1071 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1072 msgid "SVr4, 4.3BSD, POSIX.1-2001."
1073 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
1074
1075 #. type: SH
1076 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1077 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1078 #, no-wrap
1079 msgid "NOTES"
1080 msgstr "NOTES"
1081
1082 #. type: Plain text
1083 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1084 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1085 msgid ""
1086 "A child that terminates, but has not been waited for becomes a \"zombie\". "
1087 "The kernel maintains a minimal set of information about the zombie process "
1088 "(PID, termination status, resource usage information) in order to allow the "
1089 "parent to later perform a wait to obtain information about the child. As "
1090 "long as a zombie is not removed from the system via a wait, it will consume "
1091 "a slot in the kernel process table, and if this table fills, it will not be "
1092 "possible to create further processes. If a parent process terminates, then "
1093 "its \"zombie\" children (if any) are adopted by B<init>(1), (or by the "
1094 "nearest \"subreaper\" process as defined through the use of the B<prctl>(2) "
1095 "B<PR_SET_CHILD_SUBREAPER> operation); B<init>(1) automatically performs a "
1096 "wait to remove the zombies."
1097 msgstr ""
1098 "Un enfant qui se termine mais n'a pas été attendu devient un «\\ zombie\\ ». "
1099 "Le noyau conserve des informations minimales sur le processus zombie "
1100 "(identifiant, code de retour, informations d'utilisation des ressources) "
1101 "pour permettre au parent de l'attendre plus tard et d'obtenir des "
1102 "informations sur l'enfant. Tant que le zombie n'est pas effacé du système "
1103 "par une attente, il prendra un emplacement dans la table des processus du "
1104 "noyau, et si cette table est remplie, il sera impossible de créer de "
1105 "nouveaux processus. Si un processus parent se termine, ses enfants zombies "
1106 "(s'il y en a) sont adoptés par B<init>(1) (ou par le processus suppresseur "
1107 "(I<subreaper>) le plus proche tel que défini par l'utilisation de "
1108 "l'opération B<PR_SET_CHILD_SUBREAPER> de B<prctl>(2)) ; B<init>(1) les "
1109 "attend automatiquement pour supprimer les zombies."
1110
1111 #. type: Plain text
1112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1114 msgid ""
1115 "POSIX.1-2001 specifies that if the disposition of B<SIGCHLD> is set to "
1116 "B<SIG_IGN> or the B<SA_NOCLDWAIT> flag is set for B<SIGCHLD> (see "
1117 "B<sigaction>(2)), then children that terminate do not become zombies and a "
1118 "call to B<wait>() or B<waitpid>() will block until all children have "
1119 "terminated, and then fail with I<errno> set to B<ECHILD>. (The original "
1120 "POSIX standard left the behavior of setting B<SIGCHLD> to B<SIG_IGN> "
1121 "unspecified. Note that even though the default disposition of B<SIGCHLD> is "
1122 "\"ignore\", explicitly setting the disposition to B<SIG_IGN> results in "
1123 "different treatment of zombie process children.)"
1124 msgstr ""
1125 "POSIX.1-2001 indique que si l'action pour B<SIGCHLD> est définie à "
1126 "B<SIG_IGN> ou si l'attribut B<SA_NOCLDWAIT> est indiqué pour B<SIGCHLD> "
1127 "(voir B<sigaction>(2)), les enfants qui se terminent ne deviennent pas des "
1128 "zombies et un appel à B<wait>() ou B<waitpid>() sera bloquant jusqu'à ce que "
1129 "tous les enfants soient terminés, et échouera ensuite en positionnant "
1130 "I<errno> à B<ECHILD>. (La norme POSIX originale ne décrivait pas le "
1131 "comportement si l'action pour B<SIGCHLD> était B<SIG_IGN>. Veuillez noter "
1132 "que même si la disposition par défaut de B<SIGCHLD> est « ignore », la "
1133 "configuration explicite de la disposition de B<SIG_IGN> entraîne un "
1134 "traitement différent des processus enfants zombies.)"
1135
1136 #. type: Plain text
1137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1139 msgid ""
1140 "Linux 2.6 conforms to the POSIX requirements. However, Linux 2.4 (and "
1141 "earlier) does not: if a B<wait>() or B<waitpid>() call is made while "
1142 "B<SIGCHLD> is being ignored, the call behaves just as though B<SIGCHLD> were "
1143 "not being ignored, that is, the call blocks until the next child terminates "
1144 "and then returns the process ID and status of that child."
1145 msgstr ""
1146 "Linux 2.6 est conforme aux préconisations de POSIX. Cependant, Linux 2.4 et "
1147 "les versions antérieures ne l'étaient pas. Lorsqu'un appel B<wait>() ou "
1148 "B<waitpid>() était exécuté en ignorant B<SIGCHLD>, les appels se "
1149 "comportaient comme si B<SIGCHLD> était pris en compte, c'est à dire que "
1150 "l'appel restait bloqué en attendant que l'enfant suivant se termine, puis "
1151 "renvoyait l'identifiant de processus et l'état de cet enfant. "
1152
1153 #. type: SS
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 #, no-wrap
1157 msgid "Linux notes"
1158 msgstr "Notes pour Linux"
1159
1160 #. type: Plain text
1161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1163 msgid ""
1164 "In the Linux kernel, a kernel-scheduled thread is not a distinct construct "
1165 "from a process. Instead, a thread is simply a process that is created using "
1166 "the Linux-unique B<clone>(2) system call; other routines such as the "
1167 "portable B<pthread_create>(3) call are implemented using B<clone>(2). "
1168 "Before Linux 2.4, a thread was just a special case of a process, and as a "
1169 "consequence one thread could not wait on the children of another thread, "
1170 "even when the latter belongs to the same thread group. However, POSIX "
1171 "prescribes such functionality, and since Linux 2.4 a thread can, and by "
1172 "default will, wait on children of other threads in the same thread group."
1173 msgstr ""
1174 "Dans le noyau Linux, un thread ordonnancé par le noyau n'est pas différent "
1175 "d'un simple processus. En fait, un thread est juste un processus qui est "
1176 "créé à l'aide de la routine \\(em spécifique à Linux \\(em B<clone>(2). Les "
1177 "routines portables, comme B<pthread_create>(3), sont implémentées en "
1178 "appelant B<clone>(2). Avant Linux 2.4, un thread était simplement un cas "
1179 "particulier de processus, et en conséquence un thread ne pouvait pas "
1180 "attendre les enfants d'un autre thread, même si ce dernier appartenait au "
1181 "même groupe de threads. Toutefois, POSIX réclame une telle fonctionnalité, "
1182 "et depuis Linux 2.4 un thread peut, par défaut, attendre les enfants des "
1183 "autres threads du même groupe."
1184
1185 #. commit 91c4e8ea8f05916df0c8a6f383508ac7c9e10dba
1186 #. type: Plain text
1187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1189 msgid ""
1190 "The following Linux-specific I<options> are for use with children created "
1191 "using B<clone>(2); they can also, since Linux 4.7, be used with B<waitid>():"
1192 msgstr ""
1193 "Les I<options> suivantes sont spécifiques à Linux et servent pour les "
1194 "enfants créés avec B<clone>(2)\\ ; elles peuvent aussi, depuis Linux 4.7, "
1195 "être utilisées avec B<waitid>()\\ :"
1196
1197 #. type: TP
1198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1200 #, no-wrap
1201 msgid "B<__WCLONE>"
1202 msgstr "B<__WCLONE>"
1203
1204 #. since 0.99pl10
1205 #. type: Plain text
1206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1208 msgid ""
1209 "Wait for \"clone\" children only. If omitted, then wait for \"non-clone\" "
1210 "children only. (A \"clone\" child is one which delivers no signal, or a "
1211 "signal other than B<SIGCHLD> to its parent upon termination.) This option "
1212 "is ignored if B<__WALL> is also specified."
1213 msgstr ""
1214 "Attendre uniquement des enfants clones. Sinon, attendre uniquement les "
1215 "enfants non-clones (un enfant «\\ clone\\ » est un enfant qui n'envoie pas "
1216 "de signal ou un autre signal que B<SIGCHLD> à son père à sa terminaison). "
1217 "Cette option est ignorée si B<__WALL> est aussi indiqué."
1218
1219 #. type: TP
1220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1222 #, no-wrap
1223 msgid "B<__WALL> (since Linux 2.4)"
1224 msgstr "B<__WALL> (depuis Linux 2.4)"
1225
1226 #. since patch-2.3.48
1227 #. type: Plain text
1228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1230 msgid "Wait for all children, regardless of type (\"clone\" or \"non-clone\")."
1231 msgstr ""
1232 "Attendre tous les enfants, quel que soit leur type (clone ou non-clone)."
1233
1234 #. type: TP
1235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1237 #, no-wrap
1238 msgid "B<__WNOTHREAD> (since Linux 2.4)"
1239 msgstr "B<__WNOTHREAD> (Depuis Linux 2.4)"
1240
1241 #. since patch-2.4.0-test8
1242 #. type: Plain text
1243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1245 msgid ""
1246 "Do not wait for children of other threads in the same thread group. This "
1247 "was the default before Linux 2.4."
1248 msgstr ""
1249 "Ne pas attendre les enfants des autres threads du même groupe de threads. "
1250 "Cela était le cas par défaut avant Linux 2.4."
1251
1252 #. commit bf959931ddb88c4e4366e96dd22e68fa0db9527c
1253 #. prevents cases where an unreapable zombie is created if
1254 #. /sbin/init doesn't use __WALL.
1255 #. type: Plain text
1256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1258 msgid ""
1259 "Since Linux 4.7, the B<__WALL> flag is automatically implied if the child is "
1260 "being ptraced."
1261 msgstr ""
1262 "Depuis Linux 4.7, l'attribut B<__WALL> est automatiquement impliqué si "
1263 "l'enfant est suivi."
1264
1265 #. type: SH
1266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1268 #, no-wrap
1269 msgid "BUGS"
1270 msgstr "BOGUES"
1271
1272 #. type: Plain text
1273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1275 msgid ""
1276 "According to POSIX.1-2008, an application calling B<waitid>() must ensure "
1277 "that I<infop> points to a I<siginfo_t> structure (i.e., that it is a non-"
1278 "null pointer). On Linux, if I<infop> is NULL, B<waitid>() succeeds, and "
1279 "returns the process ID of the waited-for child. Applications should avoid "
1280 "relying on this inconsistent, nonstandard, and unnecessary feature."
1281 msgstr ""
1282 "Selon la norme POSIX.1-2008, une application appelant B<waitid>() doit "
1283 "garantir que I<infop> pointe sur une structure I<siginfo_t> (c'est-à-dire "
1284 "qu'elle ne pointe pas sur NULL). Sur Linux, si I<infop> est NULL, "
1285 "B<waitid>() réussit, et renvoie l'identificateur du processus enfant "
1286 "attendu. Dans la mesure du possible, les applications doivent éviter d'avoir "
1287 "recours à cette fonctionnalité incohérente, non standard et superflue."
1288
1289 #. type: SH
1290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1292 #, no-wrap
1293 msgid "EXAMPLES"
1294 msgstr "EXEMPLES"
1295
1296 #. fork.2 refers to this example program.
1297 #. type: Plain text
1298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1300 msgid ""
1301 "The following program demonstrates the use of B<fork>(2) and B<waitpid>(). "
1302 "The program creates a child process. If no command-line argument is "
1303 "supplied to the program, then the child suspends its execution using "
1304 "B<pause>(2), to allow the user to send signals to the child. Otherwise, if "
1305 "a command-line argument is supplied, then the child exits immediately, using "
1306 "the integer supplied on the command line as the exit status. The parent "
1307 "process executes a loop that monitors the child using B<waitpid>(), and uses "
1308 "the W*() macros described above to analyze the wait status value."
1309 msgstr ""
1310 "Le programme suivant montre l'utilisation de B<fork>(2) et de B<waitpid>(). "
1311 "Le programme crée un processus enfant. Si aucun argument n'est fourni dans "
1312 "la ligne de commande du programme, l'enfant suspend son exécution avec "
1313 "B<pause>(2), pour que l'utilisateur puisse lui envoyer des signaux. Sinon, "
1314 "l'enfant se termine immédiatement en utilisant l'entier fourni sur la ligne "
1315 "de commande comme code de retour. Le processus père boucle en surveillant "
1316 "l'état de l'enfant avec B<waitpid>() et utilise les macros W*() décrites ci-"
1317 "dessus pour analyser le code d'état de l'enfant."
1318
1319 #. type: Plain text
1320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1322 msgid "The following shell session demonstrates the use of the program:"
1323 msgstr ""
1324 "La session interactive suivante montre l'utilisation de ce programme\\ :"
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 #, no-wrap
1330 msgid ""
1331 "$B< ./a.out &>\n"
1332 "Child PID is 32360\n"
1333 "[1] 32359\n"
1334 "$B< kill -STOP 32360>\n"
1335 "stopped by signal 19\n"
1336 "$B< kill -CONT 32360>\n"
1337 "continued\n"
1338 "$B< kill -TERM 32360>\n"
1339 "killed by signal 15\n"
1340 "[1]+ Done ./a.out\n"
1341 "$\n"
1342 msgstr ""
1343 "$B< ./a.out &>\n"
1344 "Le PID de l'enfant est 32360\n"
1345 "[1] 32359\n"
1346 "$B< kill -STOP 32360>\n"
1347 "arrêté par le signal 19\n"
1348 "$B< kill -CONT 32360>\n"
1349 "relancé\n"
1350 "$B< kill -TERM 32360>\n"
1351 "tué par le signal 15\n"
1352 "[1]+ Done ./a.out\n"
1353 "$\n"
1354
1355 #. type: SS
1356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1358 #, no-wrap
1359 msgid "Program source"
1360 msgstr "Source du programme"
1361
1362 #. type: Plain text
1363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1365 #, no-wrap
1366 msgid ""
1367 "#include E<lt>stdint.hE<gt>\n"
1368 "#include E<lt>stdio.hE<gt>\n"
1369 "#include E<lt>stdlib.hE<gt>\n"
1370 "#include E<lt>sys/types.hE<gt>\n"
1371 "#include E<lt>sys/wait.hE<gt>\n"
1372 "#include E<lt>unistd.hE<gt>\n"
1373 "\\&\n"
1374 "int\n"
1375 "main(int argc, char *argv[])\n"
1376 "{\n"
1377 " int wstatus;\n"
1378 " pid_t cpid, w;\n"
1379 "\\&\n"
1380 " cpid = fork();\n"
1381 " if (cpid == -1) {\n"
1382 " perror(\"fork\");\n"
1383 " exit(EXIT_FAILURE);\n"
1384 " }\n"
1385 "\\&\n"
1386 " if (cpid == 0) { /* Code executed by child */\n"
1387 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1388 " if (argc == 1)\n"
1389 " pause(); /* Wait for signals */\n"
1390 " _exit(atoi(argv[1]));\n"
1391 "\\&\n"
1392 " } else { /* Code executed by parent */\n"
1393 " do {\n"
1394 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1395 " if (w == -1) {\n"
1396 " perror(\"waitpid\");\n"
1397 " exit(EXIT_FAILURE);\n"
1398 " }\n"
1399 "\\&\n"
1400 " if (WIFEXITED(wstatus)) {\n"
1401 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1402 " } else if (WIFSIGNALED(wstatus)) {\n"
1403 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1404 " } else if (WIFSTOPPED(wstatus)) {\n"
1405 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1406 " } else if (WIFCONTINUED(wstatus)) {\n"
1407 " printf(\"continued\\[rs]n\");\n"
1408 " }\n"
1409 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1410 " exit(EXIT_SUCCESS);\n"
1411 " }\n"
1412 "}\n"
1413 msgstr ""
1414 "#include E<lt>stdint.hE<gt>\n"
1415 "#include E<lt>stdio.hE<gt>\n"
1416 "#include E<lt>stdlib.hE<gt>\n"
1417 "#include E<lt>sys/types.hE<gt>\n"
1418 "#include E<lt>sys/wait.hE<gt>\n"
1419 "#include E<lt>unistd.hE<gt>\n"
1420 "\\&\n"
1421 "int\n"
1422 "main(int argc, char *argv[])\n"
1423 "{\n"
1424 " int wstatus;\n"
1425 " pid_t cpid, w;\n"
1426 "\\&\n"
1427 " cpid = fork();\n"
1428 " if (cpid == -1) {\n"
1429 " perror(\"fork\");\n"
1430 " exit(EXIT_FAILURE);\n"
1431 " }\n"
1432 "\\&\n"
1433 " if (cpid == 0) { /* Code exécuté par l'enfant */\n"
1434 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1435 " if (argc == 1)\n"
1436 " pause(); /* Attendre un signal */\n"
1437 " _exit(atoi(argv[1]));\n"
1438 "\\&\n"
1439 " } else { /* Code exécuté par le parent */\n"
1440 " do {\n"
1441 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1442 " if (w == -1) {\n"
1443 " perror(\"waitpid\");\n"
1444 " exit(EXIT_FAILURE);\n"
1445 " }\n"
1446 "\\&\n"
1447 " if (WIFEXITED(wstatus)) {\n"
1448 " printf(\"terminé, code=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1449 " } else if (WIFSIGNALED(wstatus)) {\n"
1450 " printf(\"tué par le signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1451 " } else if (WIFSTOPPED(wstatus)) {\n"
1452 " printf(\"arrêté par le signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1453 " } else if (WIFCONTINUED(wstatus)) {\n"
1454 " printf(\"relancé\\[rs]n\");\n"
1455 " }\n"
1456 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1457 " exit(EXIT_SUCCESS);\n"
1458 " }\n"
1459 "}\n"
1460
1461 #. SRC END
1462 #. type: SH
1463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1465 #, no-wrap
1466 msgid "SEE ALSO"
1467 msgstr "VOIR AUSSI"
1468
1469 #. type: Plain text
1470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1472 msgid ""
1473 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1474 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1475 "B<core>(5), B<credentials>(7), B<signal>(7)"
1476 msgstr ""
1477 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1478 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1479 "B<core>(5), B<credentials>(7), B<signal>(7)"
1480
1481 #. type: TH
1482 #: debian-trixie
1483 #, no-wrap
1484 msgid "2024-06-15"
1485 msgstr "15 juin 2024"
1486
1487 #. type: TH
1488 #: debian-trixie
1489 #, no-wrap
1490 msgid "Linux man-pages 6.9.1"
1491 msgstr "Pages du manuel de Linux 6.9.1"
1492
1493 #. type: Plain text
1494 #: debian-trixie
1495 msgid "Standard C library (I<libc>, I<-lc>)"
1496 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
1497
1498 #. type: Plain text
1499 #: debian-trixie
1500 #, no-wrap
1501 msgid ""
1502 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1503 " /* This is the glibc and POSIX interface; see\n"
1504 " NOTES for information on the raw system call. */\n"
1505 msgstr ""
1506 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1507 " /* Il s'agit de l'interface de glibc et POSIX ; consultez les\n"
1508 " NOTES pour des informations sur les appels système bruts. */\n"
1509
1510 #. type: TP
1511 #: debian-trixie fedora-44 fedora-rawhide
1512 #, no-wrap
1513 msgid "B<WCOREDUMP(>I<wstatus>B<)>"
1514 msgstr "B<WCOREDUMP(>I<wstatus>B<)>"
1515
1516 #. type: Plain text
1517 #: debian-trixie fedora-44 fedora-rawhide
1518 msgid ""
1519 "This macro is not specified in POSIX.1-2001 and is not available on some "
1520 "UNIX implementations (e.g., AIX, SunOS). Therefore, enclose its use inside "
1521 "I<#ifdef WCOREDUMP ... #endif>."
1522 msgstr ""
1523 "Cette macro n'est pas décrite par POSIX.1-2001 et n'est pas disponible sur "
1524 "certaines implémentations d'UNIX (par exemple AIX ou SunOS). N'utilisez "
1525 "cette macro qu'entourée de I<#ifdef WCOREDUMP ... #endif>."
1526
1527 #. type: TP
1528 #: debian-trixie fedora-44 fedora-rawhide
1529 #, no-wrap
1530 msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
1531 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1532
1533 #. type: TP
1534 #: debian-trixie fedora-44 fedora-rawhide
1535 #, no-wrap
1536 msgid "I<idtype> == B<P_PID>"
1537 msgstr "I<idtype> == B<P_PID>"
1538
1539 #. type: TP
1540 #: debian-trixie fedora-44 fedora-rawhide
1541 #, no-wrap
1542 msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
1543 msgstr "I<idtype> == B<P_PIDFD> (depuis Linux 5.4)"
1544
1545 #. type: TP
1546 #: debian-trixie fedora-44 fedora-rawhide
1547 #, no-wrap
1548 msgid "I<idtype> == B<P_PGID>"
1549 msgstr "I<idtype> == B<P_PGID>"
1550
1551 #. type: TP
1552 #: debian-trixie fedora-44 fedora-rawhide
1553 #, no-wrap
1554 msgid "I<idtype> == B<P_ALL>"
1555 msgstr "I<idtype> == B<P_ALL>"
1556
1557 #. type: Plain text
1558 #: debian-trixie fedora-44 fedora-rawhide
1559 msgid ""
1560 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
1561 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
1562 "not a child of the calling process. (This can happen for one's own child if "
1563 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux Notes> "
1564 "section about threads.)"
1565 msgstr ""
1566 "(pour B<waitpid>() ou B<waitid>()) Le processus indiqué par I<pid> "
1567 "(B<waitpid>()) ou I<idtype> et I<id> (B<waitid>()) n'existe pas ou n'est pas "
1568 "un enfant du processus appelant. (Cela peut arriver pour son propre enfant "
1569 "si l'action de B<SIGCHLD> est définie à B<SIG_IGN> ; voir également le "
1570 "passage de la section I<Notes sur Linux> concernant les threads.)"
1571
1572 #. type: Plain text
1573 #: debian-trixie fedora-44 fedora-rawhide
1574 msgid "POSIX.1-2008."
1575 msgstr "POSIX.1-2008."
1576
1577 #. type: TH
1578 #: fedora-44 fedora-rawhide
1579 #, no-wrap
1580 msgid "2024-07-23"
1581 msgstr "23 juillet 2024"
1582
1583 #. type: TH
1584 #: fedora-44 fedora-rawhide
1585 #, no-wrap
1586 msgid "Linux man-pages 6.13"
1587 msgstr "Pages du manuel de Linux 6.13"
1588
1589 #. type: Plain text
1590 #: fedora-44 fedora-rawhide
1591 #, no-wrap
1592 msgid ""
1593 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1594 " /* This is the glibc and POSIX interface; see\n"
1595 " VERSIONS for information on the raw system call. */\n"
1596 msgstr ""
1597 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1598 " /* Il s'agit de l'interface de glibc et POSIX ; consultez les\n"
1599 " VERSIONS pour des informations sur les appels système bruts. */\n"
1600
1601 #. type: TH
1602 #: mageia-cauldron
1603 #, no-wrap
1604 msgid "Linux man-pages 6.17"
1605 msgstr "Pages du manuel de Linux 6.17"
1606
1607 #. type: TH
1608 #: opensuse-leap-16-1 opensuse-tumbleweed
1609 #, no-wrap
1610 msgid "Linux man-pages (unreleased)"
1611 msgstr "Pages du manuel de Linux (non publiées)"