Debian Codegraph @

po/it/man2/wait.2.po

raw
1 # Italian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Giulio Daprelà <[email protected]>, 2005, 2007.
5 # Elisabetta Galli <[email protected]>, 2007-2008.
6 # Marco Curreli <[email protected]>, 2013-2018, 2020, 2021.
7 # Giuseppe Sacco <[email protected]>, 2024, 2026.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n 4.0.0\n"
11 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
12 "PO-Revision-Date: 2026-01-20 18:47+0100\n"
13 "Last-Translator: Giuseppe Sacco <[email protected]>\n"
14 "Language-Team: Italian <[email protected]>\n"
15 "Language: it\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 "X-Generator: Poedit 3.8\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "wait"
27 msgstr "wait"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 febbraio 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, fuzzy, no-wrap
39 #| msgid "Linux man-pages 6.17"
40 msgid "Linux man-pages 6.18"
41 msgstr "Linux man-pages 6.17"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NOME"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid "wait, waitpid, waitid - wait for process to change state"
54 msgstr "wait, waitpid, waitid - aspetta che il processo cambi stato"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "LIBRERIA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Libreria C standard (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINTASSI"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>sys/wait.hE<gt>>\n"
81 msgstr "B<#include E<lt>sys/wait.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
89 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
90 msgstr ""
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
94 #. type: Plain text
95 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
96 #: opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
100 " /* This is the glibc and POSIX interface; see\n"
101 " VERSIONS for information on the raw system call. */\n"
102 msgstr ""
103 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
104 " /* Questa è l'interfaccia di glibc e POSIX ; si veda\n"
105 " VERSIONI per informazioni sulla chiamata di sistema diretta. */\n"
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
112 msgstr ""
113 "Macro per test di funzionalità per glibc (vedere B<feature_test_macros>(7)):"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid "B<waitid>():"
119 msgstr "B<waitid>():"
120
121 #. (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid ""
127 " Since glibc 2.26:\n"
128 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
129 " glibc 2.25 and earlier:\n"
130 " _XOPEN_SOURCE\n"
131 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
132 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
133 msgstr ""
134 " A partire da glibc 2.26:\n"
135 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
136 " glibc 2.25 e precedenti:\n"
137 " _XOPEN_SOURCE\n"
138 " || /* A partire da glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
139 " || /* glibc E<lt>= 2.19: */ _BSD_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 "DESCRIZIONE"
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 "Tutte queste chiamate di sistema si usano per attendere cambiamenti di stato "
161 "in un processo figlio del processo chiamante, e ottenere informazioni sul "
162 "processo figlio il cui stato è cambiato. Un cambiamento di stato avviene "
163 "quando: il processo figlio è terminato; il processo figlio è stato arrestato "
164 "da un segnale; il processo figlio è stato ripristinato da un segnale. In "
165 "caso di un processo figlio terminato, un'attesa permette al sistema di "
166 "rilasciare le risorse associate al processo figlio; se non viene eseguita "
167 "un'attesa, allora il processo figlio terminato rimane in uno stato "
168 "\"zombie\" (vedere le NOTE sotto)."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "If a child has already changed state, then these calls return immediately. "
175 "Otherwise, they block until either a child changes state or a signal handler "
176 "interrupts the call (assuming that system calls are not automatically "
177 "restarted using the B<SA_RESTART> flag of B<sigaction>(2)). In the "
178 "remainder of this page, a child whose state has changed and which has not "
179 "yet been waited upon by one of these system calls is termed I<waitable>."
180 msgstr ""
181 "Se un processo figlio ha già cambiato stato, allora le chiamate tornano "
182 "immediatamente. Altrimenti esse si bloccano fino a quando un processo figlio "
183 "cambia stato o un gestore di segnale interrompe la chiamata (supponendo che "
184 "le chiamate di sistema non siano automaticamente riavviate usando il flag "
185 "B<SA_RESTART> di B<sigaction>(2)). Nel resto di questa pagina un processo "
186 "figlio il cui stato è cambiato, e che nessuna di queste chiamate di sistema "
187 "ha aspettato, è definito I<aspettabile>."
188
189 #. type: SS
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "wait() and waitpid()"
194 msgstr "wait() e waitpid()"
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "The B<wait>() system call suspends execution of the calling thread until "
201 "one of its children terminates. The call I<wait(&wstatus)> is equivalent to:"
202 msgstr ""
203 "La chiamata di sistema B<wait>() sospende l'esecuzione del thread chiamante "
204 "fino a quando uno dei suoi figli termina. La chiamata I<wait(&wstatus)> è "
205 "equivalente a:"
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "waitpid(-1, &wstatus, 0);\n"
212 msgstr "waitpid(-1, &wstatus, 0);\n"
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid ""
218 "The B<waitpid>() system call suspends execution of the calling thread until "
219 "a child specified by I<pid> argument has changed state. By default, "
220 "B<waitpid>() waits only for terminated children, but this behavior is "
221 "modifiable via the I<options> argument, as described below."
222 msgstr ""
223 "La chiamata di sistema B<waitpid>() sospende l'esecuzione del thread "
224 "chiamante fino a quando un processo figlio specificato dall'argomento I<pid> "
225 "ha cambiato stato. Il comportamento predefinito di B<waitpid>() è attendere "
226 "solo i figli terminati, ma questo comportamento è modificabile attraverso "
227 "l'argomento I<opzioni> come descritto di seguito."
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid "The value of I<pid> can be:"
233 msgstr "Il valore di I<pid> può essere:"
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 "E<lt> B<-1>"
240 msgstr "E<lt> 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 ""
246 "meaning wait for any child process whose process group ID is equal to the "
247 "absolute value of I<pid>."
248 msgstr ""
249 "che significa attesa di qualunque processo figlio il cui gruppo ID del "
250 "processo sia uguale al valore assoluto di I<pid>."
251
252 #. type: TP
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "B<-1>"
257 msgstr "B<-1>"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid "meaning wait for any child process."
263 msgstr "che significa aspettare qualunque processo figlio."
264
265 #. type: TP
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "B<0>"
270 msgstr "B<0>"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "meaning wait for any child process whose process group ID is equal to that "
277 "of the calling process at the time of the call to B<waitpid>()."
278 msgstr ""
279 "che significa aspettare qualunque processo figlio il cui gruppo ID del "
280 "processo sia uguale a quello del processo chiamante al momento della "
281 "chiamata a B<waitpid>()."
282
283 #. type: TP
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "E<gt> B<0>"
288 msgstr "E<gt> B<0>"
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 "meaning wait for the child whose process ID is equal to the value of I<pid>."
295 msgstr ""
296 "che significa aspettare il processo figlio il cui ID di processo sia uguale "
297 "al valore di I<pid>."
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 "The value of I<options> is an OR of zero or more of the following constants:"
304 msgstr "Il valore di I<opzioni> è un OR di zero o più delle seguenti costanti:"
305
306 #. type: TP
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "B<WNOHANG>"
311 msgstr "B<WNOHANG>"
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid "return immediately if no child has exited."
317 msgstr "torna immediatamente se nessun processo figlio è uscito."
318
319 #. type: TP
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "B<WUNTRACED>"
324 msgstr "B<WUNTRACED>"
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid ""
330 "also return if a child has stopped (but not traced via B<ptrace>(2)). "
331 "Status for I<traced> children which have stopped is provided even if this "
332 "option is not specified."
333 msgstr ""
334 "torna anche se un processo figlio si è arrestato (ma non tracciato "
335 "attraverso B<ptrace>(2)). Lo stato del processo figlio non I<tracciato> che "
336 "è stato arrestato è fornito anche se l'opzione non è specificata."
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<WCONTINUED> (since Linux 2.6.10)"
343 msgstr "B<WCONTINUED> (a partire da Linux 2.6.10)"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "also return if a stopped child has been resumed by delivery of B<SIGCONT>."
350 msgstr ""
351 "torna anche se un processo figlio arrestato è stato riesumato inviando "
352 "B<SIGCONT>."
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid "(For Linux-only options, see below.)"
358 msgstr "(Per le opzioni solo Linux vedere oltre)."
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "If I<wstatus> is not NULL, B<wait>() and B<waitpid>() store status "
365 "information in the I<int> to which it points. This integer can be inspected "
366 "with the following macros (which take the integer itself as an argument, not "
367 "a pointer to it, as is done in B<wait>() and B<waitpid>()!):"
368 msgstr ""
369 "Se I<wstatus> non è NULL, B<wait>() e B<waitpid>() memorizzano "
370 "l'informazione di stato in I<int> a cui punta. Questo intero può essere "
371 "verificato con le seguenti macro (che prendono lo stesso intero come "
372 "argomento, non come un puntatore ad esso, come fanno B<wait>() e "
373 "B<waitpid>()!):"
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<WIFEXITED(>I<wstatus>B<)>"
380 msgstr "B<WIFEXITED(>I<wstatus>B<)>"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "returns true if the child terminated normally, that is, by calling "
387 "B<exit>(3) or B<_exit>(2), or by returning from main()."
388 msgstr ""
389 "restituisce true se il processo figlio è terminato normalmente, ovvero, "
390 "chiamando B<exit>(3) o B<_exit>(2), o tornando da main()."
391
392 #. type: TP
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "B<WEXITSTATUS(>I<wstatus>B<)>"
397 msgstr "B<WEXITSTATUS(>I<wstatus>B<)>"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "returns the exit status of the child. This consists of the least "
404 "significant 8 bits of the I<status> argument that the child specified in a "
405 "call to B<exit>(3) or B<_exit>(2) or as the argument for a return "
406 "statement in main(). This macro should be employed only if B<WIFEXITED> "
407 "returned true."
408 msgstr ""
409 "ritorna lo stato di uscita del processo figlio. Esso consiste negli 8 bit "
410 "meno significativi dell'argomento I<status> che il processo figlio ha "
411 "specificato in una chiamata a B<exit>(3) o B<_exit>(2) o come argomento per "
412 "una dichiarazione di ritorno in main(). Questa macro deve essere impiegata "
413 "solo se B<WIFEXITED> restituisce true."
414
415 #. type: TP
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "B<WIFSIGNALED(>I<wstatus>B<)>"
420 msgstr "B<WIFSIGNALED(>I<wstatus>B<)>"
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid "returns true if the child process was terminated by a signal."
426 msgstr ""
427 "restituisce true se il processo figlio è stato terminato da un segnale."
428
429 #. type: TP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<WTERMSIG(>I<wstatus>B<)>"
434 msgstr "B<WTERMSIG(>I<wstatus>B<)>"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ""
440 "returns the number of the signal that caused the child process to "
441 "terminate. This macro should be employed only if B<WIFSIGNALED> returned "
442 "true."
443 msgstr ""
444 "restituisce il numero del segnale che ha causato l'arresto del processo "
445 "figlio. Questa macro deve essere impiegata solo se B<WIFSIGNALED> ha "
446 "restituito true."
447
448 #. type: TP
449 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
450 #: opensuse-tumbleweed
451 #, no-wrap
452 msgid "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
453 msgstr "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid ""
459 "returns true if the child produced a core dump (see B<core>(5)). This macro "
460 "should be employed only if B<WIFSIGNALED> returned true."
461 msgstr ""
462 "restituisce true se il processo figlio ha prodotto un core dump (si veda "
463 "B<core>(5)). Questa macro deve essere impiegata solo se B<WIFSIGNALED> ha "
464 "restituito true."
465
466 #. type: TP
467 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
468 #: opensuse-tumbleweed
469 #, no-wrap
470 msgid "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
471 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid ""
477 "returns true if the child process was stopped by delivery of a signal; this "
478 "is possible only if the call was done using B<WUNTRACED> or when the child "
479 "is being traced (see B<ptrace>(2))."
480 msgstr ""
481 "restituisce true se il processo figlio è stato arrestato inviando un "
482 "segnale; questo è possibile solo se la chiamata è stata effettuata usando "
483 "B<WUNTRACED> o quando il processo figlio è stato tracciato (vedere "
484 "B<ptrace>(2))."
485
486 #. type: TP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "B<WSTOPSIG(>I<wstatus>B<)>"
491 msgstr "B<WSTOPSIG(>I<wstatus>B<)>"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid ""
497 "returns the number of the signal which caused the child to stop. This macro "
498 "should be employed only if B<WIFSTOPPED> returned true."
499 msgstr ""
500 "restituisce il numero del segnale che ha causato l'arresto del processo "
501 "figlio. Questa macro deve essere impiegata solo se B<WIFSTOPPED> ha "
502 "restituito true."
503
504 #. type: TP
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "B<WIFCONTINUED(>I<wstatus>B<)>"
509 msgstr "B<WIFCONTINUED(>I<wstatus>B<)>"
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid ""
515 "(since Linux 2.6.10) returns true if the child process was resumed by "
516 "delivery of B<SIGCONT>."
517 msgstr ""
518 "(A partire da Linux 2.6.10) restituisce true se il processo figlio è stato "
519 "riesumato inviando B<SIGCONT>."
520
521 #. type: SS
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "waitid()"
526 msgstr "waitid()"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "The B<waitid>() system call (available since Linux 2.6.9) provides more "
533 "precise control over which child state changes to wait for."
534 msgstr ""
535 "La chiamata di sistema B<waitid>() (disponibile a partire da Linux 2.6.9) "
536 "fornisce un controllo più preciso su quale cambiamento di stato del processo "
537 "figlio aspettare."
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid ""
543 "The I<idtype> and I<id> arguments select the child(ren) to wait for, as "
544 "follows:"
545 msgstr ""
546 "Gli argomenti I<idtype> e I<id> selezionano il processo figlio(i) da "
547 "aspettare, come segue:"
548
549 #. type: TP
550 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
551 #: opensuse-tumbleweed
552 #, no-wrap
553 msgid "I<idtype> == \\f[B]P_PID\\fR"
554 msgstr "I<idtype> == \\f[B]P_PID\\fR"
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 msgid "Wait for the child whose process ID matches I<id>."
560 msgstr "Aspetta il processo figlio il cui ID di processo corrisponde a I<id>."
561
562 #. type: TP
563 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
564 #: opensuse-tumbleweed
565 #, no-wrap
566 msgid "I<idtype> == \\f[B]P_PIDFD\\fR (since Linux 5.4)"
567 msgstr "I<idtype> == \\f[B]P_PIDFD\\fR (a partire da Linux 5.4)"
568
569 #. commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "Wait for the child referred to by the PID file descriptor specified in "
575 "I<id>. (See B<pidfd_open>(2) for further information on PID file "
576 "descriptors.)"
577 msgstr ""
578 "Aspetta il processo figlio a cui fa riferimento il descrittore di file di "
579 "PID specificato in I<id>. (Si veda B<pidfd_open>(2) per ulteriori "
580 "informazioni sui descrittori di file di PID.)"
581
582 #. type: TP
583 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
584 #: opensuse-tumbleweed
585 #, no-wrap
586 msgid "I<idtype> == \\f[B]P_PGID\\fR"
587 msgstr "I<idtype> == \\f[B]P_PGID\\fR"
588
589 #. commit 821cc7b0b205c0df64cce59aacc330af251fa8f7
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "Wait for any child whose process group ID matches I<id>. Since Linux 5.4, "
595 "if I<id> is zero, then wait for any child that is in the same process group "
596 "as the caller's process group at the time of the call."
597 msgstr ""
598 "Aspetta qualunque processo figlio il cui ID di gruppo del processo "
599 "corrisponda a I<id>. Da Linux 5.4, se I<id> è zero, aspetta qualsiasi "
600 "processo figlio che è nello stesso gruppo di processi del gruppo di processi "
601 "del chiamante al momento della chiamata."
602
603 #. type: TP
604 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
605 #: opensuse-tumbleweed
606 #, no-wrap
607 msgid "I<idtype> == \\f[B]P_ALL\\fR"
608 msgstr "I<idtype> == \\f[B]P_ALL\\fR"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid "Wait for any child; I<id> is ignored."
614 msgstr "Aspetta qualunque processo figlio; I<id> è ignorato."
615
616 #. type: Plain text
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 msgid ""
620 "The child state changes to wait for are specified by ORing one or more of "
621 "the following flags in I<options>:"
622 msgstr ""
623 "Il cambiamento di stato del processo figlio da aspettare è specificato "
624 "eseguendo un OR su uno o più dei seguenti flag in I<opzioni>:"
625
626 #. type: TP
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, no-wrap
630 msgid "B<WEXITED>"
631 msgstr "B<WEXITED>"
632
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid "Wait for children that have terminated."
637 msgstr "Aspetta il processo figlio che è terminato."
638
639 #. type: TP
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 #, no-wrap
643 msgid "B<WSTOPPED>"
644 msgstr "B<WSTOPPED>"
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 msgid "Wait for children that have been stopped by delivery of a signal."
650 msgstr ""
651 "Aspetta il processo figlio che è stato arrestato con l'invio di un segnale."
652
653 #. type: TP
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 #, no-wrap
657 msgid "B<WCONTINUED>"
658 msgstr "B<WCONTINUED>"
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 msgid ""
664 "Wait for (previously stopped) children that have been resumed by delivery of "
665 "B<SIGCONT>."
666 msgstr ""
667 "Aspetta i figli (precedentemente arrestati) che sono stati riesumati "
668 "inviando B<SIGCONT>."
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 "Si può inoltre eseguire un OR sui seguenti flag in I<opzioni>:"
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 "Come per B<waitpid>()."
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 "Lascia il processo figlio in uno stato aspettabile; una successiva chiamata "
697 "di attesa può essere usata per trovare di nuovo l'informazione sullo stato "
698 "del processo figlio."
699
700 #. type: Plain text
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 msgid ""
704 "Upon successful return, B<waitid>() fills in the following fields of the "
705 "I<siginfo_t> structure pointed to by I<infop>:"
706 msgstr ""
707 "In seguito a un ritorno con successo, B<waitid>() riempie i seguenti campi "
708 "della struttura I<siginfo_t> a cui punta I<infop>:"
709
710 #. type: TP
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 #, no-wrap
714 msgid "I<si_pid>"
715 msgstr "I<si_pid>"
716
717 #. type: Plain text
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 msgid "The process ID of the child."
721 msgstr "L'ID di processo del processo figlio."
722
723 #. type: TP
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 #, no-wrap
727 msgid "I<si_uid>"
728 msgstr "I<si_uid>"
729
730 #. type: Plain text
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 msgid ""
734 "The real user ID of the child. (This field is not set on most other "
735 "implementations.)"
736 msgstr ""
737 "L'ID reale dell'utente del processo figlio. (Questo campo non viene "
738 "impostato nella maggior parte delle altre implementazioni.)"
739
740 #. type: TP
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 #, no-wrap
744 msgid "I<si_signo>"
745 msgstr "I<si_signo>"
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 msgid "Always set to B<SIGCHLD>."
751 msgstr "Imposta sempre a B<SIGCHLD>."
752
753 #. type: TP
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "I<si_status>"
758 msgstr "I<si_status>"
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 msgid ""
764 "Either the exit status of the child, as given to B<_exit>(2) (or "
765 "B<exit>(3)), or the signal that caused the child to terminate, stop, or "
766 "continue. The I<si_code> field can be used to determine how to interpret "
767 "this field."
768 msgstr ""
769 "O lo stato di uscita del processo figlio, come dato a B<_exit>(2) (o "
770 "B<exit>(3)), o il segnale che ha causato la terminazione, l'arresto o la "
771 "continuazione del processo figlio. Il campo I<si_code> può essere usato per "
772 "determinare come interpretare questo campo."
773
774 #. type: TP
775 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
776 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
777 #, no-wrap
778 msgid "I<si_code>"
779 msgstr "I<si_code>"
780
781 #. type: Plain text
782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
784 msgid ""
785 "Set to one of: B<CLD_EXITED> (child called B<_exit>(2)); B<CLD_KILLED> "
786 "(child killed by signal); B<CLD_DUMPED> (child killed by signal, and dumped "
787 "core); B<CLD_STOPPED> (child stopped by signal); B<CLD_TRAPPED> (traced "
788 "child has trapped); or B<CLD_CONTINUED> (child continued by B<SIGCONT>)."
789 msgstr ""
790 "Imposta a uno tra: B<CLD_EXITED> (processo figlio chiamato B<_exit>(2)); "
791 "B<CLD_KILLED> (processo figlio terminato da un segnale); B<CLD_DUMPED> "
792 "(processo figlio terminato da un segnale, ed eseguito un core dump); "
793 "B<CLD_STOPPED> (processo figlio arrestato da un segnale); B<CLD_TRAPPED> (il "
794 "processo figlio tracciato è stato bloccato); o B<CLD_CONTINUED> (processo "
795 "figlio continuato da B<SIGCONT>)."
796
797 #. type: Plain text
798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
800 msgid ""
801 "If B<WNOHANG> was specified in I<options> and there were no children in a "
802 "waitable state, then B<waitid>() returns 0 immediately and the state of the "
803 "I<siginfo_t> structure pointed to by I<infop> depends on the "
804 "implementation. To (portably) distinguish this case from that where a child "
805 "was in a waitable state, zero out the I<si_pid> field before the call and "
806 "check for a nonzero value in this field after the call returns."
807 msgstr ""
808 "Se B<WNOHANG> è stato specificato in I<opzioni> e non c'erano figli in uno "
809 "stato aspettabile, allora B<waitid>() restituisce immediatamente 0, e lo "
810 "stato della struttura I<siginfo_t> a cui punta I<infop> dipende "
811 "dall'implementazione. Per distinguere (in modo portabile) questo caso da "
812 "quello in cui un processo figlio era in uno stato aspettabile, il campo "
813 "I<si_pid> viene impostato a zero prima della chiamata e, dopo il ritorno "
814 "della chiamata, verifica che in questo campo non ci sia un valore zero."
815
816 #. POSIX.1-2001 leaves this possibility unspecified; most
817 #. implementations (including Linux) zero out the structure
818 #. in this case, but at least one implementation (AIX 5.1)
819 #. does not -- MTK Nov 04
820 #. type: Plain text
821 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
822 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
823 msgid ""
824 "POSIX.1-2008 Technical Corrigendum 1 (2013) adds the requirement that when "
825 "B<WNOHANG> is specified in I<options> and there were no children in a "
826 "waitable state, then B<waitid>() should zero out the I<si_pid> and "
827 "I<si_signo> fields of the structure. On Linux and other implementations "
828 "that adhere to this requirement, it is not necessary to zero out the "
829 "I<si_pid> field before calling B<waitid>(). However, not all "
830 "implementations follow the POSIX.1 specification on this point."
831 msgstr ""
832 "POSIX.1-2008 Technical Corrigendum 1 (2013) aggiunge il requisito secondo il "
833 "quale, quando viene specificato B<WNOHANG> nelle I<opzioni> e non ci sono "
834 "figli in uno stato aspettabile, B<waitid>() dovrebbe impostate a zero i "
835 "campi I<si_pid> e I<si_signo> della struttura. Su Linux e altre "
836 "implementazioni che aderiscono a questi requisiti, non è necessario azzerare "
837 "il campo I<si_pid> prima di chiamare B<waitid>(). Comunque, non tutte le "
838 "implementazioni seguono le specifiche POSIX.1 riguardo a questo punto."
839
840 #. type: SH
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 #, no-wrap
844 msgid "RETURN VALUE"
845 msgstr "VALORE RESTITUITO"
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 ""
851 "B<wait>(): on success, returns the process ID of the terminated child; on "
852 "failure, -1 is returned."
853 msgstr ""
854 "B<wait>(): in caso di successo, restituisce l'ID del processo del processo "
855 "figlio terminato; in caso di insuccesso restituisce -1."
856
857 #. type: Plain text
858 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
859 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
860 msgid ""
861 "B<waitpid>(): on success, returns the process ID of the child whose state "
862 "has changed; if B<WNOHANG> was specified and one or more child(ren) "
863 "specified by I<pid> exist, but have not yet changed state, then 0 is "
864 "returned. On failure, -1 is returned."
865 msgstr ""
866 "B<waitpid>(): in caso di successo, restituisce l'ID del processo del "
867 "processo figlio il cui stato è cambiato; se B<WNOHANG> era specificato e uno "
868 "o più figli specificati da I<pid> esiste, ma non ha ancora cambiato stato, "
869 "allora viene restituito 0. In caso di insuccesso restituisce -1."
870
871 #. FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
872 #. returns the PID of the child. Either this is a bug, or it is intended
873 #. behavior that needs to be documented. See my Jan 2009 LKML mail
874 #. "waitid() return value strangeness when infop is NULL".
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "B<waitid>(): returns 0 on success or if B<WNOHANG> was specified and no "
880 "child(ren) specified by I<id> has yet changed state; on failure, -1 is "
881 "returned."
882 msgstr ""
883 "B<waitid>(): restituisce 0 in caso di successo o se B<WNOHANG> era "
884 "specificato e nessun processo figlio(i) specificato da I<id> ha ancora "
885 "cambiato stato; in caso di insuccesso restituisce -1."
886
887 #. type: Plain text
888 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
889 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
890 msgid "On failure, each of these calls sets I<errno> to indicate the error."
891 msgstr ""
892 "Ciascuna di queste chiamate imposta I<errno> ad un valore per indicare "
893 "l'errore."
894
895 #. type: SH
896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
898 #, no-wrap
899 msgid "ERRORS"
900 msgstr "ERRORI"
901
902 #. type: TP
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 #, no-wrap
906 msgid "B<EAGAIN>"
907 msgstr "B<EAGAIN>"
908
909 #. type: Plain text
910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
912 msgid ""
913 "The PID file descriptor specified in I<id> is nonblocking and the process "
914 "that it refers to has not terminated."
915 msgstr ""
916 "Il descrittore di file PID specificato in I<id> è di tipo non bloccante e il "
917 "processo al quale fa riferimento non è terminato."
918
919 #. type: TP
920 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
921 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
922 #, no-wrap
923 msgid "B<ECHILD>"
924 msgstr "B<ECHILD>"
925
926 #. type: Plain text
927 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
928 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
929 msgid ""
930 "(for B<wait>()) The calling process does not have any unwaited-for children."
931 msgstr ""
932 "(per B<wait>()) Il processo chiamante non ha nessun processo figlio "
933 "inaspettato."
934
935 #. type: Plain text
936 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
937 #: opensuse-tumbleweed
938 msgid ""
939 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
940 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
941 "not a child of the calling process. (This can happen for one's own child if "
942 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux\\ "
943 "Notes> section about threads.)"
944 msgstr ""
945 "(per B<waitpid>() o B<waitid>()) Il processo specificato da I<pid> "
946 "(B<waitpid>()) o I<idtype> e I<id> (B<waitid>()) non esiste o non è un "
947 "processo figlio del processo chiamante (ciò può accadere per il processo "
948 "figlio di un processo se l'azione per B<SIGCHLD> è impostata a B<SIG_IGN>. "
949 "Vedere anche la sezione I<Note Linux> sui thread)."
950
951 #. type: TP
952 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
953 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
954 #, no-wrap
955 msgid "B<EINTR>"
956 msgstr "B<EINTR>"
957
958 #. type: Plain text
959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
961 msgid ""
962 "B<WNOHANG> was not set and an unblocked signal or a B<SIGCHLD> was caught; "
963 "see B<signal>(7)."
964 msgstr ""
965 "B<WNOHANG> non era impostata ed è stato intercettato un segnale sbloccato o "
966 "un B<SIGCHLD>; vedere B<signal>(7)."
967
968 #. type: TP
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 #, no-wrap
972 msgid "B<EINVAL>"
973 msgstr "B<EINVAL>"
974
975 #. type: Plain text
976 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
977 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
978 msgid "The I<options> argument was invalid."
979 msgstr "Gli argomenti delle I<opzioni> non erano validi."
980
981 #. type: TP
982 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
983 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
984 #, no-wrap
985 msgid "B<ESRCH>"
986 msgstr "B<ESRCH>"
987
988 #. type: Plain text
989 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
990 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
991 msgid "(for B<wait>() or B<waitpid>()) I<pid> is equal to B<INT_MIN>."
992 msgstr "(per B<wait>() o B<waitpid>()) I<pid> è uguale a B<INT_MIN>."
993
994 #. type: SH
995 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
996 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
997 #, no-wrap
998 msgid "VERSIONS"
999 msgstr "VERSIONI"
1000
1001 #. type: SS
1002 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1003 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1004 #, no-wrap
1005 msgid "C library/kernel differences"
1006 msgstr "Differenze tra la libreria C e il kernel"
1007
1008 #. type: Plain text
1009 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1010 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1011 msgid ""
1012 "B<wait>() is actually a library function that (in glibc) is implemented as "
1013 "a call to B<wait4>(2)."
1014 msgstr ""
1015 "B<wait>() è in realtà una funzione di libreria che (in glibc) è implementata "
1016 "come una chiamata a B<wait4>(2)."
1017
1018 #. e.g., i386 has the system call, but not x86-64
1019 #. type: Plain text
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 msgid ""
1023 "On some architectures, there is no B<waitpid>() system call; instead, this "
1024 "interface is implemented via a C library wrapper function that calls "
1025 "B<wait4>(2)."
1026 msgstr ""
1027 "Su alcune architetture, non c'è nessuna chiamata di sistema B<waitpid>(); "
1028 "invece, questa interfaccia è implementata attraverso una funzione wrapper "
1029 "della libreria C che chiama B<wait4>(2)."
1030
1031 #. type: Plain text
1032 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1033 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1034 msgid ""
1035 "The raw B<waitid>() system call takes a fifth argument, of type I<struct "
1036 "rusage\\ *>. If this argument is non-NULL, then it is used to return "
1037 "resource usage information about the child, in the same manner as "
1038 "B<wait4>(2). See B<getrusage>(2) for details."
1039 msgstr ""
1040 "La chiamata di sistema diretta B<waitid>() accetta un quinto argomento, di "
1041 "tipo I<struct rusage\\ *>. Se questo argomento non è NULL, viene usato per "
1042 "restituire informazioni sull'uso delle risorse del processofiglio, allo "
1043 "stesso modo di B<wait4>(2). Vedere B<getrusage>(2) per i dettagli."
1044
1045 #. type: SH
1046 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1047 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1048 #, no-wrap
1049 msgid "STANDARDS"
1050 msgstr "CONFORME A"
1051
1052 #. type: Plain text
1053 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1054 #: opensuse-tumbleweed
1055 msgid "POSIX.1-2024."
1056 msgstr "POSIX.1-2024."
1057
1058 #. type: SH
1059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1061 #, no-wrap
1062 msgid "HISTORY"
1063 msgstr "STORIA"
1064
1065 #. type: Plain text
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 msgid "SVr4, 4.3BSD, POSIX.1-2001."
1069 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
1070
1071 #. type: SH
1072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1074 #, no-wrap
1075 msgid "NOTES"
1076 msgstr "NOTE"
1077
1078 #. type: Plain text
1079 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1080 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1081 msgid ""
1082 "A child that terminates, but has not been waited for becomes a \"zombie\". "
1083 "The kernel maintains a minimal set of information about the zombie process "
1084 "(PID, termination status, resource usage information) in order to allow the "
1085 "parent to later perform a wait to obtain information about the child. As "
1086 "long as a zombie is not removed from the system via a wait, it will consume "
1087 "a slot in the kernel process table, and if this table fills, it will not be "
1088 "possible to create further processes. If a parent process terminates, then "
1089 "its \"zombie\" children (if any) are adopted by B<init>(1), (or by the "
1090 "nearest \"subreaper\" process as defined through the use of the B<prctl>(2) "
1091 "B<PR_SET_CHILD_SUBREAPER> operation); B<init>(1) automatically performs a "
1092 "wait to remove the zombies."
1093 msgstr ""
1094 "Un processo figlio che termina, ma in modo inaspettato, diviene uno "
1095 "\"zombie\". Il kernel mantiene un insieme minimo di informazioni sui "
1096 "processi zombie (PID, stato di terminazione, informazioni sull'uso delle "
1097 "risorse) allo scopo di permettere al padre di eseguire in seguito un wait "
1098 "per ottenere informazioni sul processo figlio. Se uno zombie non viene "
1099 "rimosso dal sistema attraverso un wait, esso consumerà uno slot nella "
1100 "tabella dei processi del kernel, e se questa tabella si riempie, non sarà "
1101 "possibile creare ulteriori processi. Se un processo padre termina, allora i "
1102 "suoi figli \"zombie\" (se ce ne sono) sono adottati da B<init>(1) (o dal "
1103 "processo \"subreaper\" più vicino come definito attraverso l'uso "
1104 "dell'operazione B<prctl>(2) B<PR_SET_CHILD_SUBREAPER>); B<init>(1) esegue "
1105 "automaticamente un wait per rimuovere gli zombie."
1106
1107 #. type: Plain text
1108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1110 msgid ""
1111 "POSIX.1-2001 specifies that if the disposition of B<SIGCHLD> is set to "
1112 "B<SIG_IGN> or the B<SA_NOCLDWAIT> flag is set for B<SIGCHLD> (see "
1113 "B<sigaction>(2)), then children that terminate do not become zombies and a "
1114 "call to B<wait>() or B<waitpid>() will block until all children have "
1115 "terminated, and then fail with I<errno> set to B<ECHILD>. (The original "
1116 "POSIX standard left the behavior of setting B<SIGCHLD> to B<SIG_IGN> "
1117 "unspecified. Note that even though the default disposition of B<SIGCHLD> is "
1118 "\"ignore\", explicitly setting the disposition to B<SIG_IGN> results in "
1119 "different treatment of zombie process children.)"
1120 msgstr ""
1121 "POSIX.1-2001 specifica che se la disposizione di B<SIGCHLD> è impostata a "
1122 "B<SIG_IGN> o il flag B<SA_NOCLDWAIT> è impostato per B<SIGCHLD> (vedere "
1123 "B<sigaction>(2)), i figli terminati non diventano zombie e una chiamata a "
1124 "B<wait>() o B<waitpid>() verrà bloccata fino a quando tutti i figli sono "
1125 "terminati, e in seguito fallisce con I<errno> impostato a B<ECHILD>. (Lo "
1126 "standard POSIX originale lasciava il comportamento di impostare B<SIGCHLD> a "
1127 "B<SIG_IGN> non specificato. Si noti che, anche se la disposizione "
1128 "predefinita di B<SIGCHLD> è \"ignore\", impostarla esplicitamente a "
1129 "B<SIG_IGN> comporterà un diverso trattamento dei processi figlio zombie)."
1130
1131 #. type: Plain text
1132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1134 msgid ""
1135 "Linux 2.6 conforms to the POSIX requirements. However, Linux 2.4 (and "
1136 "earlier) does not: if a B<wait>() or B<waitpid>() call is made while "
1137 "B<SIGCHLD> is being ignored, the call behaves just as though B<SIGCHLD> were "
1138 "not being ignored, that is, the call blocks until the next child terminates "
1139 "and then returns the process ID and status of that child."
1140 msgstr ""
1141 "Linux 2.6 è conforme a questa specifica. Tuttavia Linux 2.4 (e precedenti) "
1142 "non lo è: se una chiamata B<wait>() o B<waitpid>() è effettuata mentre "
1143 "B<SIGCHLD> è ignorato, la chiamata si comporta come se B<SIGCHLD> non fosse "
1144 "stato ignorato, ovvero, la chiamata si blocca fino a quando il prossimo "
1145 "processo figlio termina e quindi restituisce l'ID del processo e lo stato di "
1146 "questo processo figlio."
1147
1148 #. type: SS
1149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1151 #, no-wrap
1152 msgid "Linux notes"
1153 msgstr "Note Linux"
1154
1155 #. type: Plain text
1156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1158 msgid ""
1159 "In the Linux kernel, a kernel-scheduled thread is not a distinct construct "
1160 "from a process. Instead, a thread is simply a process that is created using "
1161 "the Linux-unique B<clone>(2) system call; other routines such as the "
1162 "portable B<pthread_create>(3) call are implemented using B<clone>(2). "
1163 "Before Linux 2.4, a thread was just a special case of a process, and as a "
1164 "consequence one thread could not wait on the children of another thread, "
1165 "even when the latter belongs to the same thread group. However, POSIX "
1166 "prescribes such functionality, and since Linux 2.4 a thread can, and by "
1167 "default will, wait on children of other threads in the same thread group."
1168 msgstr ""
1169 "Nel kernel Linux un thread programmato dal kernel non è un costrutto "
1170 "distinto da un processo. Invece un thread è semplicemente un processo creato "
1171 "usando la chiamata esclusiva di Linux B<clone>(2); altre routine come la "
1172 "chiamata portabile B<pthread_create>(3) sono implementate usando "
1173 "B<clone>(2). Prima di Linux 2.4 un thread era solo un caso speciale di un "
1174 "processo, e come conseguenza un thread non poteva aspettare il processo "
1175 "figlio di un altro thread, anche se l'ultimo apparteneva allo stesso gruppo "
1176 "del thread. Tuttavia POSIX prescrive tale funzionalità, e a partire da Linux "
1177 "2.4 un thread può, e in modo predefinito lo fa, aspettare il processo figlio "
1178 "di un altro thread nello stesso gruppo del thread."
1179
1180 #. commit 91c4e8ea8f05916df0c8a6f383508ac7c9e10dba
1181 #. type: Plain text
1182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1184 msgid ""
1185 "The following Linux-specific I<options> are for use with children created "
1186 "using B<clone>(2); they can also, since Linux 4.7, be used with B<waitid>():"
1187 msgstr ""
1188 "Le seguenti I<opzioni> specifiche di Linux devono essere usate con i figli "
1189 "creati usando B<clone>(2); esse possono anche essere usate, a partire da "
1190 "Linux 4.07, con B<waitid>():"
1191
1192 #. type: TP
1193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1195 #, no-wrap
1196 msgid "B<__WCLONE>"
1197 msgstr "B<__WCLONE>"
1198
1199 #. since 0.99pl10
1200 #. type: Plain text
1201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1203 msgid ""
1204 "Wait for \"clone\" children only. If omitted, then wait for \"non-clone\" "
1205 "children only. (A \"clone\" child is one which delivers no signal, or a "
1206 "signal other than B<SIGCHLD> to its parent upon termination.) This option "
1207 "is ignored if B<__WALL> is also specified."
1208 msgstr ""
1209 "Aspetta solo i figli di \"clone\". Se omessa allora aspetta solo i figli "
1210 "\"non-clone\". (Un processo figlio \"clone\" è uno che non invia segnali, o "
1211 "un segnale diverso da B<SIGCHLD> ai suoi genitori quando viene terminato). "
1212 "Questa opzione è ignorata se viene anche specificato B<__WALL>."
1213
1214 #. type: TP
1215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1217 #, no-wrap
1218 msgid "B<__WALL> (since Linux 2.4)"
1219 msgstr "B<__WALL> (a partire da Linux 2.4)"
1220
1221 #. since patch-2.3.48
1222 #. type: Plain text
1223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1225 msgid "Wait for all children, regardless of type (\"clone\" or \"non-clone\")."
1226 msgstr ""
1227 "Aspetta tutti i figli, qualunque sia il loro tipo (\"clone\" o \"non-"
1228 "clone\")."
1229
1230 #. type: TP
1231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1233 #, no-wrap
1234 msgid "B<__WNOTHREAD> (since Linux 2.4)"
1235 msgstr "B<__WNOTHREAD> (a partire da Linux 2.4)"
1236
1237 #. since patch-2.4.0-test8
1238 #. type: Plain text
1239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1241 msgid ""
1242 "Do not wait for children of other threads in the same thread group. This "
1243 "was the default before Linux 2.4."
1244 msgstr ""
1245 "Non aspetta figli di altri thread nello stesso gruppo del thread. Questo era "
1246 "il comportamento predefinito prima di Linux 2.4."
1247
1248 #. commit bf959931ddb88c4e4366e96dd22e68fa0db9527c
1249 #. prevents cases where an unreapable zombie is created if
1250 #. /sbin/init doesn't use __WALL.
1251 #. type: Plain text
1252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1254 msgid ""
1255 "Since Linux 4.7, the B<__WALL> flag is automatically implied if the child is "
1256 "being ptraced."
1257 msgstr ""
1258 "A partire da Linux 4.7, il flag B<__WALL> è automaticamente sottinteso se il "
1259 "processo figlio è tracciato con ptrace."
1260
1261 #. type: SH
1262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1264 #, no-wrap
1265 msgid "BUGS"
1266 msgstr "BUG"
1267
1268 #. type: Plain text
1269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1271 msgid ""
1272 "According to POSIX.1-2008, an application calling B<waitid>() must ensure "
1273 "that I<infop> points to a I<siginfo_t> structure (i.e., that it is a non-"
1274 "null pointer). On Linux, if I<infop> is NULL, B<waitid>() succeeds, and "
1275 "returns the process ID of the waited-for child. Applications should avoid "
1276 "relying on this inconsistent, nonstandard, and unnecessary feature."
1277 msgstr ""
1278 "Secondo POSIX.1-2008, un'applicazione che chiama B<waitid>() deve "
1279 "assicurarsi che I<infop> punti ala struttura I<siginfo_t> (cioé, che sia un "
1280 "puntatore non-NULL). Su Linux, se I<infop> è NULL, B<waitid>() va a buon "
1281 "fine, e ritorna l'ID di processo del processo figlio aspettato. Le "
1282 "applicazioni dovrebbero evitare di contare su questa caratteristica non "
1283 "conforme, non standard e non necessaria."
1284
1285 #. type: SH
1286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1288 #, no-wrap
1289 msgid "EXAMPLES"
1290 msgstr "ESEMPI"
1291
1292 #. fork.2 refers to this example program.
1293 #. type: Plain text
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 msgid ""
1297 "The following program demonstrates the use of B<fork>(2) and B<waitpid>(). "
1298 "The program creates a child process. If no command-line argument is "
1299 "supplied to the program, then the child suspends its execution using "
1300 "B<pause>(2), to allow the user to send signals to the child. Otherwise, if "
1301 "a command-line argument is supplied, then the child exits immediately, using "
1302 "the integer supplied on the command line as the exit status. The parent "
1303 "process executes a loop that monitors the child using B<waitpid>(), and uses "
1304 "the W*() macros described above to analyze the wait status value."
1305 msgstr ""
1306 "Il seguente programma dimostra l'uso di B<fork>(2) e B<waitpid>(). Il "
1307 "programma crea un processo figlio. Se dalla linea di comando non viene "
1308 "fornito alcun argomento al programma, allora il processo figlio sospende la "
1309 "propria esecuzione usando B<pause>(2), per permettere all'utente di mandare "
1310 "il segnale al processo figlio. Altrimenti, se viene fornito un argomento "
1311 "dalla linea di comando, allora il processo figlio esce immediatamente, "
1312 "usando l'intero fornito dalla linea di comando come stato di uscita. Il "
1313 "processo genitore esegue un ciclo che controlla il processo figlio usando "
1314 "B<waitpid>(), e usa le macro W*() descritte sopra per analizzare il valore "
1315 "dello stato diattesa."
1316
1317 #. type: Plain text
1318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1320 msgid "The following shell session demonstrates the use of the program:"
1321 msgstr "La seguente sessione di shell dimostra l'uso del programma:"
1322
1323 #. type: Plain text
1324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1326 #, no-wrap
1327 msgid ""
1328 "$B< ./a.out &>\n"
1329 "Child PID is 32360\n"
1330 "[1] 32359\n"
1331 "$B< kill -STOP 32360>\n"
1332 "stopped by signal 19\n"
1333 "$B< kill -CONT 32360>\n"
1334 "continued\n"
1335 "$B< kill -TERM 32360>\n"
1336 "killed by signal 15\n"
1337 "[1]+ Done ./a.out\n"
1338 "$\n"
1339 msgstr ""
1340 "$B< ./a.out &>\n"
1341 "Child PID is 32360\n"
1342 "[1] 32359\n"
1343 "$B< kill -STOP 32360>\n"
1344 "stopped by signal 19\n"
1345 "$B< kill -CONT 32360>\n"
1346 "continued\n"
1347 "$B< kill -TERM 32360>\n"
1348 "killed by signal 15\n"
1349 "[1]+ Done ./a.out\n"
1350 "$\n"
1351
1352 #. type: SS
1353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1355 #, no-wrap
1356 msgid "Program source"
1357 msgstr "Sorgente del programma"
1358
1359 #. type: Plain text
1360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1362 #, no-wrap
1363 msgid ""
1364 "#include E<lt>stdint.hE<gt>\n"
1365 "#include E<lt>stdio.hE<gt>\n"
1366 "#include E<lt>stdlib.hE<gt>\n"
1367 "#include E<lt>sys/types.hE<gt>\n"
1368 "#include E<lt>sys/wait.hE<gt>\n"
1369 "#include E<lt>unistd.hE<gt>\n"
1370 "\\&\n"
1371 "int\n"
1372 "main(int argc, char *argv[])\n"
1373 "{\n"
1374 " int wstatus;\n"
1375 " pid_t cpid, w;\n"
1376 "\\&\n"
1377 " cpid = fork();\n"
1378 " if (cpid == -1) {\n"
1379 " perror(\"fork\");\n"
1380 " exit(EXIT_FAILURE);\n"
1381 " }\n"
1382 "\\&\n"
1383 " if (cpid == 0) { /* Code executed by child */\n"
1384 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1385 " if (argc == 1)\n"
1386 " pause(); /* Wait for signals */\n"
1387 " _exit(atoi(argv[1]));\n"
1388 "\\&\n"
1389 " } else { /* Code executed by parent */\n"
1390 " do {\n"
1391 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1392 " if (w == -1) {\n"
1393 " perror(\"waitpid\");\n"
1394 " exit(EXIT_FAILURE);\n"
1395 " }\n"
1396 "\\&\n"
1397 " if (WIFEXITED(wstatus)) {\n"
1398 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1399 " } else if (WIFSIGNALED(wstatus)) {\n"
1400 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1401 " } else if (WIFSTOPPED(wstatus)) {\n"
1402 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1403 " } else if (WIFCONTINUED(wstatus)) {\n"
1404 " printf(\"continued\\[rs]n\");\n"
1405 " }\n"
1406 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1407 " exit(EXIT_SUCCESS);\n"
1408 " }\n"
1409 "}\n"
1410 msgstr ""
1411 "#include E<lt>stdint.hE<gt>\n"
1412 "#include E<lt>stdio.hE<gt>\n"
1413 "#include E<lt>stdlib.hE<gt>\n"
1414 "#include E<lt>sys/types.hE<gt>\n"
1415 "#include E<lt>sys/wait.hE<gt>\n"
1416 "#include E<lt>unistd.hE<gt>\n"
1417 "\\&\n"
1418 "int\n"
1419 "main(int argc, char *argv[])\n"
1420 "{\n"
1421 " int wstatus;\n"
1422 " pid_t cpid, w;\n"
1423 "\\&\n"
1424 " cpid = fork();\n"
1425 " if (cpid == -1) {\n"
1426 " perror(\"fork\");\n"
1427 " exit(EXIT_FAILURE);\n"
1428 " }\n"
1429 "\\&\n"
1430 " if (cpid == 0) { /* Codice eseguito dal figlio */\n"
1431 " printf(\"Il PID del figlio è %jd\\[rs]n\", (intmax_t) getpid());\n"
1432 " if (argc == 1)\n"
1433 " pause(); /* Attende un segnale */\n"
1434 " _exit(atoi(argv[1]));\n"
1435 "\\&\n"
1436 " } else { /* Codice eseguito dal padre */\n"
1437 " do {\n"
1438 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1439 " if (w == -1) {\n"
1440 " perror(\"waitpid\");\n"
1441 " exit(EXIT_FAILURE);\n"
1442 " }\n"
1443 "\\&\n"
1444 " if (WIFEXITED(wstatus)) {\n"
1445 " printf(\"uscita, stato=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1446 " } else if (WIFSIGNALED(wstatus)) {\n"
1447 " printf(\"terminato dal segnale %d\\[rs]n\", WTERMSIG(wstatus));\n"
1448 " } else if (WIFSTOPPED(wstatus)) {\n"
1449 " printf(\"in pausa per il segnale %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1450 " } else if (WIFCONTINUED(wstatus)) {\n"
1451 " printf(\"ripresa dopo la pausa\\[rs]n\");\n"
1452 " }\n"
1453 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1454 " exit(EXIT_SUCCESS);\n"
1455 " }\n"
1456 "}\n"
1457
1458 #. SRC END
1459 #. type: SH
1460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1462 #, no-wrap
1463 msgid "SEE ALSO"
1464 msgstr "VEDERE ANCHE"
1465
1466 #. type: Plain text
1467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1469 msgid ""
1470 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1471 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1472 "B<core>(5), B<credentials>(7), B<signal>(7)"
1473 msgstr ""
1474 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1475 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1476 "B<core>(5), B<credentials>(7), B<signal>(7)"
1477
1478 #. type: TH
1479 #: debian-trixie
1480 #, no-wrap
1481 msgid "2024-06-15"
1482 msgstr "15 giugno 2024"
1483
1484 #. type: TH
1485 #: debian-trixie
1486 #, no-wrap
1487 msgid "Linux man-pages 6.9.1"
1488 msgstr "Linux man-pages 6.9.1"
1489
1490 #. type: Plain text
1491 #: debian-trixie
1492 msgid "Standard C library (I<libc>, I<-lc>)"
1493 msgstr "Libreria C standard (I<libc>, I<-lc>)"
1494
1495 #. type: Plain text
1496 #: debian-trixie
1497 #, no-wrap
1498 msgid ""
1499 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1500 " /* This is the glibc and POSIX interface; see\n"
1501 " NOTES for information on the raw system call. */\n"
1502 msgstr ""
1503 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<opzioni>B<);>\n"
1504 " /* Questa è l'interfaccia di glibc e POSIX ; si veda\n"
1505 " NOTES per informazioni sulla chiamata di sistema diretta. */\n"
1506
1507 #. type: TP
1508 #: debian-trixie fedora-44 fedora-rawhide
1509 #, no-wrap
1510 msgid "B<WCOREDUMP(>I<wstatus>B<)>"
1511 msgstr "B<WCOREDUMP(>I<wstatus>B<)>"
1512
1513 #. type: Plain text
1514 #: debian-trixie fedora-44 fedora-rawhide
1515 msgid ""
1516 "This macro is not specified in POSIX.1-2001 and is not available on some "
1517 "UNIX implementations (e.g., AIX, SunOS). Therefore, enclose its use inside "
1518 "I<#ifdef WCOREDUMP ... #endif>."
1519 msgstr ""
1520 "Questa macro non è specificata in POSIX.1-2001 e non è disponibile in alcune "
1521 "implementazioni Unix (per esempio AIX, SunOS). Usarla solo racchiusa "
1522 "all'interno di I<#ifdef WCOREDUMP ... #endif>."
1523
1524 #. type: TP
1525 #: debian-trixie fedora-44 fedora-rawhide
1526 #, no-wrap
1527 msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
1528 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1529
1530 #. type: TP
1531 #: debian-trixie fedora-44 fedora-rawhide
1532 #, no-wrap
1533 msgid "I<idtype> == B<P_PID>"
1534 msgstr "I<idtype> == B<P_PID>"
1535
1536 #. type: TP
1537 #: debian-trixie fedora-44 fedora-rawhide
1538 #, no-wrap
1539 msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
1540 msgstr "I<idtype> == B<P_PIDFD> (a partire da Linux 5.4)"
1541
1542 #. type: TP
1543 #: debian-trixie fedora-44 fedora-rawhide
1544 #, no-wrap
1545 msgid "I<idtype> == B<P_PGID>"
1546 msgstr "I<idtype> == B<P_PGID>"
1547
1548 #. type: TP
1549 #: debian-trixie fedora-44 fedora-rawhide
1550 #, no-wrap
1551 msgid "I<idtype> == B<P_ALL>"
1552 msgstr "I<idtype> == B<P_ALL>"
1553
1554 #. type: Plain text
1555 #: debian-trixie fedora-44 fedora-rawhide
1556 msgid ""
1557 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
1558 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
1559 "not a child of the calling process. (This can happen for one's own child if "
1560 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux Notes> "
1561 "section about threads.)"
1562 msgstr ""
1563 "(per B<waitpid>() o B<waitid>()) Il processo specificato da I<pid> "
1564 "(B<waitpid>()) o I<idtype> e I<id> (B<waitid>()) non esiste o non è un "
1565 "processo figlio del processo chiamante (ciò può accadere per il processo "
1566 "figlio di un processo se l'azione per B<SIGCHLD> è impostata a B<SIG_IGN>. "
1567 "Vedere anche la sezione I<Note Linux> sui thread)."
1568
1569 #. type: Plain text
1570 #: debian-trixie fedora-44 fedora-rawhide
1571 msgid "POSIX.1-2008."
1572 msgstr "POSIX.1-2008."
1573
1574 #. type: TH
1575 #: fedora-44 fedora-rawhide
1576 #, no-wrap
1577 msgid "2024-07-23"
1578 msgstr "23 luglio 2024"
1579
1580 #. type: TH
1581 #: fedora-44 fedora-rawhide
1582 #, no-wrap
1583 msgid "Linux man-pages 6.13"
1584 msgstr "Linux man-pages 6.13"
1585
1586 #. type: Plain text
1587 #: fedora-44 fedora-rawhide
1588 #, no-wrap
1589 msgid ""
1590 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1591 " /* This is the glibc and POSIX interface; see\n"
1592 " VERSIONS for information on the raw system call. */\n"
1593 msgstr ""
1594 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<opzioni>B<);>\n"
1595 " /* Questa è l'interfaccia di glibc e POSIX ; si veda\n"
1596 " VERSIONI per informazioni sulla chiamata di sistema diretta. */\n"
1597
1598 #. type: TH
1599 #: mageia-cauldron
1600 #, no-wrap
1601 msgid "Linux man-pages 6.17"
1602 msgstr "Linux man-pages 6.17"
1603
1604 #. type: TH
1605 #: opensuse-leap-16-1 opensuse-tumbleweed
1606 #, no-wrap
1607 msgid "Linux man-pages (unreleased)"
1608 msgstr "Linux man-pages (non rilasciato)"