Debian Codegraph @

po/pl/man2/wait.2.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Przemek Borys <[email protected]>, 1999.
5 # Andrzej Krzysztofowicz <[email protected]>, 2002.
6 # Michał Kułach <[email protected]>, 2024, 2025.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
11 "PO-Revision-Date: 2025-11-27 19:28+0100\n"
12 "Last-Translator: Michał Kułach <[email protected]>\n"
13 "Language-Team: Polish <[email protected]>\n"
14 "Language: pl\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
19 "|| n%100>=20) ? 1 : 2);\n"
20 "X-Generator: Lokalize 25.04.0\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 lutego 2026 r."
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, no-wrap
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.18"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NAZWA"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "wait, waitpid, waitid - wait for process to change state"
53 msgstr "wait, waitpid, waitid - oczekuje na zmianę stanu procesu"
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 "LIBRARY"
60 msgstr "BIBLIOTEKA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
73 msgstr "SKŁADNIA"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/wait.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/wait.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
88 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
89 msgstr ""
90 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
91 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
95 #: opensuse-tumbleweed
96 #, no-wrap
97 msgid ""
98 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
99 " /* This is the glibc and POSIX interface; see\n"
100 " VERSIONS for information on the raw system call. */\n"
101 msgstr ""
102 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
103 " /* Jest to interfejs glibc i POSIX; zob. WERSJE, aby\n"
104 " uzyskać informacje o surowym wywołaniu systemowym. */\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
111 msgstr ""
112 "Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid "B<waitid>():"
118 msgstr "B<waitid>():"
119
120 #. (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid ""
126 " Since glibc 2.26:\n"
127 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
128 " glibc 2.25 and earlier:\n"
129 " _XOPEN_SOURCE\n"
130 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
131 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
132 msgstr ""
133 " Od glibc 2.26:\n"
134 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
135 " glibc 2.25 i wcześniejsze:\n"
136 " _XOPEN_SOURCE\n"
137 " || /* Od glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
138 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
139
140 #. type: SH
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid "DESCRIPTION"
145 msgstr "OPIS"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "All of these system calls are used to wait for state changes in a child of "
152 "the calling process, and obtain information about the child whose state has "
153 "changed. A state change is considered to be: the child terminated; the "
154 "child was stopped by a signal; or the child was resumed by a signal. In the "
155 "case of a terminated child, performing a wait allows the system to release "
156 "the resources associated with the child; if a wait is not performed, then "
157 "the terminated child remains in a \"zombie\" state (see NOTES below)."
158 msgstr ""
159 "Wszystkie te wywołania systemowe służą do oczekiwania na zmianę statusu "
160 "potomka procesu wywołującego oraz do uzyskania informacji o potomku, którego "
161 "stan uległ zmianie. Za zmianę stanu uważa się: zakończenie potomka, "
162 "zatrzymanie potomka przez sygnał, wznowienie potomka przez sygnał. W "
163 "przypadku zakończonego potomka, wykonanie oczekiwania pozwala systemowi na "
164 "zwolnienie zasobów związanych z potomkiem; gdyby oczekiwanie nie zostało "
165 "wykonane, to potomek pozostałby w stanie \\[Bq]zombie\\[rq] (zob. UWAGI "
166 "poniżej)."
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "If a child has already changed state, then these calls return immediately. "
173 "Otherwise, they block until either a child changes state or a signal handler "
174 "interrupts the call (assuming that system calls are not automatically "
175 "restarted using the B<SA_RESTART> flag of B<sigaction>(2)). In the "
176 "remainder of this page, a child whose state has changed and which has not "
177 "yet been waited upon by one of these system calls is termed I<waitable>."
178 msgstr ""
179 "Jeśli stan potomka już uległ zmianie, to te wywołania niezwłocznie powrócą. "
180 "W przeciwnym przypadku zablokują, do momentu zmiany stanu potomka lub "
181 "przerwania wywołania przez procedurę obsługi sygnału (zakładając, że "
182 "wywołania systemowe nie są automatycznie uruchamiane ponownie ze względu na "
183 "znacznik B<SA_RESTART> B<sigaction>(2)). W pozostałej części niniejszego "
184 "podręcznika, potomek, którego stan uległ zmianie, ale na którego jeszcze nie "
185 "poczekano za pomocą opisywanych wywołań systemowych, będzie określany "
186 "terminem I<oczekiwalnego>."
187
188 #. type: SS
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "wait() and waitpid()"
193 msgstr "wait() i waitpid()"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "The B<wait>() system call suspends execution of the calling thread until "
200 "one of its children terminates. The call I<wait(&wstatus)> is equivalent to:"
201 msgstr ""
202 "Wywołanie systemowe B<wait>() wstrzymuje wykonanie wątku wywołującego, "
203 "dopóki nie zakończy się jeden z jego potomków. Wywołanie I<wait(&wstatus)> "
204 "jest równoważne:"
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 #, no-wrap
210 msgid "waitpid(-1, &wstatus, 0);\n"
211 msgstr "waitpid(-1, &wstatus, 0);\n"
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 msgid ""
217 "The B<waitpid>() system call suspends execution of the calling thread until "
218 "a child specified by I<pid> argument has changed state. By default, "
219 "B<waitpid>() waits only for terminated children, but this behavior is "
220 "modifiable via the I<options> argument, as described below."
221 msgstr ""
222 "Wywołanie systemowe B<waitpid>() wstrzymuje wykonanie wątku wywołującego, "
223 "dopóki potomek określony argumentem I<pid> nie zmieni stanu. Domyślnie, "
224 "B<waitpid>() czeka jedynie na zatrzymanie potomka, lecz to zachowanie można "
225 "zmienić argumentem I<options>, jak opisano niżej."
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid "The value of I<pid> can be:"
231 msgstr "Wartość I<pid> może wynosić:"
232
233 #. type: TP
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "E<lt> B<-1>"
238 msgstr "E<lt> B<-1>"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "meaning wait for any child process whose process group ID is equal to the "
245 "absolute value of I<pid>."
246 msgstr ""
247 "oznacza oczekiwanie na dowolnego potomka, którego identyfikator grupy "
248 "procesów jest równy modułowi wartości (wartości bezwzględnej) I<pid>."
249
250 #. type: TP
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "B<-1>"
255 msgstr "B<-1>"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid "meaning wait for any child process."
261 msgstr "oznacza oczekiwanie na dowolnego potomka."
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "B<0>"
268 msgstr "B<0>"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "meaning wait for any child process whose process group ID is equal to that "
275 "of the calling process at the time of the call to B<waitpid>()."
276 msgstr ""
277 "oznacza oczekiwanie na dowolnego potomka, którego identyfikator grupy "
278 "procesów jest równy identyfikatorowi procesu wołającego, w momencie "
279 "wywołania B<waitpid>()."
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "E<gt> B<0>"
286 msgstr "E<gt> B<0>"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "meaning wait for the child whose process ID is equal to the value of I<pid>."
293 msgstr ""
294 "oznacza oczekiwanie na potomka, którego PID jest równy wartości I<pid>."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "The value of I<options> is an OR of zero or more of the following constants:"
301 msgstr ""
302 "Wartość I<options> jest sumą (OR) zera lub więcej spośród następujących "
303 "stałych:"
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<WNOHANG>"
310 msgstr "B<WNOHANG>"
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid "return immediately if no child has exited."
316 msgstr ""
317 "oznacza natychmiastowy powrót z funkcji, jeśli potomek nie zakończył pracy."
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 "powraca również, jeśli potomek został zatrzymany (lecz nie śledzony za "
335 "pomocą B<ptrace>(2)). Status potomków I<śledzonych>, które są zatrzymane "
336 "jest zapewniany nawet gdy nie podano tej opcji."
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> (od Linuksa 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 "powraca również, jeśli zatrzymany potomek został wznowiony sygnałem "
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 "(Poniższe opcje dotyczą wyłącznie Linuksa.)"
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 "Jeśli I<wstatus> nie wynosi NULL, to B<wait>() i B<waitpid>() przechowują "
370 "informacje o statusie w I<int>, na którą on wskazuje. Liczbę tę można "
371 "sprawdzić następującymi makrami (które jako argument przyjmują nie wskaźnik "
372 "do niej, jak czynią to B<wait>() i B<waitpid>(), lecz samą liczbę!):"
373
374 #. type: TP
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "B<WIFEXITED(>I<wstatus>B<)>"
379 msgstr "B<WIFEXITED(>I<wstatus>B<)>"
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid ""
385 "returns true if the child terminated normally, that is, by calling "
386 "B<exit>(3) or B<_exit>(2), or by returning from main()."
387 msgstr ""
388 "zwraca prawdę, jeśli potomek zakończył się w sposób normalny tj. wywołując "
389 "B<exit>(3) lub B<_exit>(2) albo powracając z main()."
390
391 #. type: TP
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "B<WEXITSTATUS(>I<wstatus>B<)>"
396 msgstr "B<WEXITSTATUS(>I<wstatus>B<)>"
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "returns the exit status of the child. This consists of the least "
403 "significant 8 bits of the I<status> argument that the child specified in a "
404 "call to B<exit>(3) or B<_exit>(2) or as the argument for a return "
405 "statement in main(). This macro should be employed only if B<WIFEXITED> "
406 "returned true."
407 msgstr ""
408 "zwraca status zakończenia potomka. Składa się on z ośmiu najmniej znaczących "
409 "bitów argumentu I<status>, które potomek podał w wywołaniu do B<exit>(3) lub "
410 "B<_exit>(2) albo argumentu powrotnego z main(). Makro to może być "
411 "przetwarzane tylko jeśli B<WIFEXITED> zwróciło prawdę."
412
413 #. type: TP
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "B<WIFSIGNALED(>I<wstatus>B<)>"
418 msgstr "B<WIFSIGNALED(>I<wstatus>B<)>"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid "returns true if the child process was terminated by a signal."
424 msgstr "zwraca prawdę, jeśli potomek został zakończony sygnałem."
425
426 #. type: TP
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "B<WTERMSIG(>I<wstatus>B<)>"
431 msgstr "B<WTERMSIG(>I<wstatus>B<)>"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "returns the number of the signal that caused the child process to "
438 "terminate. This macro should be employed only if B<WIFSIGNALED> returned "
439 "true."
440 msgstr ""
441 "zwraca numer sygnału, który spowodował zakończenie procesu potomnego. Makro "
442 "to powinno być używane tylko po zwróceniu prawdy przez B<WIFSIGNALED>."
443
444 #. type: TP
445 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
446 #: opensuse-tumbleweed
447 #, no-wrap
448 msgid "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
449 msgstr "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "returns true if the child produced a core dump (see B<core>(5)). This macro "
456 "should be employed only if B<WIFSIGNALED> returned true."
457 msgstr ""
458 "zwraca prawdę, jeśli potomek dokonał zrzutu pamięci (zob. B<core>(5)). Makra "
459 "tego należy używać tylko wówczas, gdy B<WIFSIGNALED> zwróciło prawdę."
460
461 #. type: TP
462 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
463 #: opensuse-tumbleweed
464 #, no-wrap
465 msgid "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
466 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "returns true if the child process was stopped by delivery of a signal; this "
473 "is possible only if the call was done using B<WUNTRACED> or when the child "
474 "is being traced (see B<ptrace>(2))."
475 msgstr ""
476 "zwraca prawdę, jeśli proces potomny został zatrzymany po dostarczeniu "
477 "sygnału; jest to możliwe tylko jeśli wywołanie wykonano z użyciem "
478 "B<WUNTRACED> lub gdy potomek jest śledzony (zob. B<ptrace>(2))."
479
480 #. type: TP
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "B<WSTOPSIG(>I<wstatus>B<)>"
485 msgstr "B<WSTOPSIG(>I<wstatus>B<)>"
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid ""
491 "returns the number of the signal which caused the child to stop. This macro "
492 "should be employed only if B<WIFSTOPPED> returned true."
493 msgstr ""
494 "zwraca numer sygnału, który spowodował zatrzymanie potomka. Makro to może "
495 "być użyte tylko, gdy B<WIFSTOPPED> zwróciło prawdę."
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<WIFCONTINUED(>I<wstatus>B<)>"
502 msgstr "B<WIFCONTINUED(>I<wstatus>B<)>"
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "(since Linux 2.6.10) returns true if the child process was resumed by "
509 "delivery of B<SIGCONT>."
510 msgstr ""
511 "(od Linuksa 2.6.10) zwraca prawdę, jeśli proces potomny został wznowiony, ze "
512 "względu na otrzymanie B<SIGCONT>."
513
514 #. type: SS
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "waitid()"
519 msgstr "waitid()"
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid ""
525 "The B<waitid>() system call (available since Linux 2.6.9) provides more "
526 "precise control over which child state changes to wait for."
527 msgstr ""
528 "Wywołanie systemowe B<waitid>() (dostępne od Linuksa 2.6.9) udostępnia "
529 "precyzyjniejszą kontrolę nad stanem potomka, na którego się czeka."
530
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "The I<idtype> and I<id> arguments select the child(ren) to wait for, as "
536 "follows:"
537 msgstr ""
538 "Argumenty I<idtype> i I<id> wybierają potomka (potomków), na którego się "
539 "oczekuje, jak poniżej:"
540
541 #. type: TP
542 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
543 #: opensuse-tumbleweed
544 #, no-wrap
545 msgid "I<idtype> == \\f[B]P_PID\\fR"
546 msgstr "I<idtype> == \\f[B]P_PID\\fR"
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid "Wait for the child whose process ID matches I<id>."
552 msgstr "Oczekuje na potomka, którego PID jest równy I<id>."
553
554 #. type: TP
555 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
556 #: opensuse-tumbleweed
557 #, no-wrap
558 msgid "I<idtype> == \\f[B]P_PIDFD\\fR (since Linux 5.4)"
559 msgstr "I<idtype> == \\f[B]P_PIDFD\\fR (od Linuksa 5.4)"
560
561 #. commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
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 ""
566 "Wait for the child referred to by the PID file descriptor specified in "
567 "I<id>. (See B<pidfd_open>(2) for further information on PID file "
568 "descriptors.)"
569 msgstr ""
570 "Oczekuje na potomka, do którego odnosi się deskryptor pliku PID podany w "
571 "I<id> (więcej informacji o deskryptorach pliku PID w podręczniku "
572 "B<pidfd_open>(2))."
573
574 #. type: TP
575 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
576 #: opensuse-tumbleweed
577 #, no-wrap
578 msgid "I<idtype> == \\f[B]P_PGID\\fR"
579 msgstr "I<idtype> == \\f[B]P_PGID\\fR"
580
581 #. commit 821cc7b0b205c0df64cce59aacc330af251fa8f7
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid ""
586 "Wait for any child whose process group ID matches I<id>. Since Linux 5.4, "
587 "if I<id> is zero, then wait for any child that is in the same process group "
588 "as the caller's process group at the time of the call."
589 msgstr ""
590 "Oczekuje na dowolnego potomka, którego identyfikator grupy jest równy I<id>. "
591 "Od Linuksa 5.4, jeśli I<id> wynosi zero, to oczekuje na dowolnego potomka z "
592 "tej samej grupy procesów, co grupa procesu wywołującego w momencie wywołania."
593
594 #. type: TP
595 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
596 #: opensuse-tumbleweed
597 #, no-wrap
598 msgid "I<idtype> == \\f[B]P_ALL\\fR"
599 msgstr "I<idtype> == \\f[B]P_ALL\\fR"
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid "Wait for any child; I<id> is ignored."
605 msgstr "Oczekuje na dowolnego potomka; I<id> jest ignorowane."
606
607 #. type: Plain text
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 msgid ""
611 "The child state changes to wait for are specified by ORing one or more of "
612 "the following flags in I<options>:"
613 msgstr ""
614 "Zmianę statusu potomka, na którego się oczekuje, podaje się za pomocą sumy "
615 "(OR) jednego lub kilku poniższych znaczników w I<options>:"
616
617 #. type: TP
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "B<WEXITED>"
622 msgstr "B<WEXITED>"
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 "Wait for children that have terminated."
628 msgstr "Oczekuje na potomka, który został zakończony."
629
630 #. type: TP
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "B<WSTOPPED>"
635 msgstr "B<WSTOPPED>"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid "Wait for children that have been stopped by delivery of a signal."
641 msgstr ""
642 "Oczekuje na potomka, który został zakończony za pomocą dostarczenia sygnału."
643
644 #. type: TP
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 #, no-wrap
648 msgid "B<WCONTINUED>"
649 msgstr "B<WCONTINUED>"
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "Wait for (previously stopped) children that have been resumed by delivery of "
656 "B<SIGCONT>."
657 msgstr ""
658 "Oczekuje na (poprzednio zatrzymanego) potomka, który został wznowiony "
659 "sygnałem B<SIGCONT>."
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 msgid "The following flags may additionally be ORed in I<options>:"
665 msgstr "Ponadto, w I<options> można zsumować poniższe znaczniki:"
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 "As for B<waitpid>()."
671 msgstr "Tak jak w B<waitpid>()."
672
673 #. type: TP
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "B<WNOWAIT>"
678 msgstr "B<WNOWAIT>"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid ""
684 "Leave the child in a waitable state; a later wait call can be used to again "
685 "retrieve the child status information."
686 msgstr ""
687 "Pozostawia potomka w stanie oczekiwalnym; późniejszym wywołaniem oczekiwania "
688 "można następnie pobrać informacje o stanie potomka."
689
690 #. type: Plain text
691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
693 msgid ""
694 "Upon successful return, B<waitid>() fills in the following fields of the "
695 "I<siginfo_t> structure pointed to by I<infop>:"
696 msgstr ""
697 "Po pomyślnym powrocie, B<waitid>() uzupełnia następujące pola struktury "
698 "I<siginfo_t>, na którą wskazuje I<infop>:"
699
700 #. type: TP
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "I<si_pid>"
705 msgstr "I<si_pid>"
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 "The process ID of the child."
711 msgstr "Identyfikator procesu potomnego."
712
713 #. type: TP
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 #, no-wrap
717 msgid "I<si_uid>"
718 msgstr "I<si_uid>"
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid ""
724 "The real user ID of the child. (This field is not set on most other "
725 "implementations.)"
726 msgstr ""
727 "Rzeczywisty identyfikator użytkownika potomka (pole to nie jest ustawione w "
728 "większości innych implementacji)."
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_signo>"
735 msgstr "I<si_signo>"
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 "Always set to B<SIGCHLD>."
741 msgstr "Zawsze ustawione na B<SIGCHLD>."
742
743 #. type: TP
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "I<si_status>"
748 msgstr "I<si_status>"
749
750 #. type: Plain text
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 msgid ""
754 "Either the exit status of the child, as given to B<_exit>(2) (or "
755 "B<exit>(3)), or the signal that caused the child to terminate, stop, or "
756 "continue. The I<si_code> field can be used to determine how to interpret "
757 "this field."
758 msgstr ""
759 "Status zakończenia potomka, taki jak podany do B<_exit>(2) (lub B<exit>(3)) "
760 "lub sygnał powodujący zakończenie, zatrzymanie lub kontynuowanie potomka. "
761 "Pole I<si_code> może posłużyć do określenia sposobu interpretacji tego pola."
762
763 #. type: TP
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 #, no-wrap
767 msgid "I<si_code>"
768 msgstr "I<si_code>"
769
770 #. type: Plain text
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 msgid ""
774 "Set to one of: B<CLD_EXITED> (child called B<_exit>(2)); B<CLD_KILLED> "
775 "(child killed by signal); B<CLD_DUMPED> (child killed by signal, and dumped "
776 "core); B<CLD_STOPPED> (child stopped by signal); B<CLD_TRAPPED> (traced "
777 "child has trapped); or B<CLD_CONTINUED> (child continued by B<SIGCONT>)."
778 msgstr ""
779 "Ustawione na jeden z: B<CLD_EXITED> (potomek wywołał B<_exit>(2)); "
780 "B<CLD_KILLED> (potomek zabity sygnałem); B<CLD_DUMPED> (potomek zabity "
781 "sygnałem, zrzucił pamięć); B<CLD_STOPPED> (potomek zatrzymany sygnałem); "
782 "B<CLD_TRAPPED> (śledzony potomek wyzwolił pułapkę) lub B<CLD_CONTINUED> "
783 "(potomek kontynuował po otrzymaniu B<SIGCONT>)."
784
785 #. type: Plain text
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 msgid ""
789 "If B<WNOHANG> was specified in I<options> and there were no children in a "
790 "waitable state, then B<waitid>() returns 0 immediately and the state of the "
791 "I<siginfo_t> structure pointed to by I<infop> depends on the "
792 "implementation. To (portably) distinguish this case from that where a child "
793 "was in a waitable state, zero out the I<si_pid> field before the call and "
794 "check for a nonzero value in this field after the call returns."
795 msgstr ""
796 "Jeśli w I<options> podano B<WNOHANG> i nie było potomków w stanie "
797 "oczekiwalnym, to B<waitid>() zwróci bezzwłocznie 0, natomiast stan struktury "
798 "I<siginfo_t>, na którą wskazuje I<infop> zależy od implementacji. Aby (w "
799 "sposób przenośny) rozróżnić ten przypadek od sytuacji, gdy potomek był w "
800 "stanie oczekiwalnym, należy wyzerować pole I<si_pid> przed wywołaniem i "
801 "sprawdzić, czy wartość pola jest niezerowa, po powrocie wywołania."
802
803 #. POSIX.1-2001 leaves this possibility unspecified; most
804 #. implementations (including Linux) zero out the structure
805 #. in this case, but at least one implementation (AIX 5.1)
806 #. does not -- MTK Nov 04
807 #. type: Plain text
808 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
809 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
810 msgid ""
811 "POSIX.1-2008 Technical Corrigendum 1 (2013) adds the requirement that when "
812 "B<WNOHANG> is specified in I<options> and there were no children in a "
813 "waitable state, then B<waitid>() should zero out the I<si_pid> and "
814 "I<si_signo> fields of the structure. On Linux and other implementations "
815 "that adhere to this requirement, it is not necessary to zero out the "
816 "I<si_pid> field before calling B<waitid>(). However, not all "
817 "implementations follow the POSIX.1 specification on this point."
818 msgstr ""
819 "POSIX.1-2008 Technical Corrigendum 1 (2013) dodaje wymaganie, że gdy w "
820 "I<options> podano B<WNOHANG> i nie było potomków w stanie oczekiwalnym, to "
821 "B<waitid>() powinno wyzerować pola I<si_pid> i I<si_signo> struktury. W "
822 "Linuksie i innych implementacjach, które przestrzegają tego wymagania, nie "
823 "ma potrzeby zerowania pola I<si_pid>, przed wywołaniem B<waitid>(). Obecnie, "
824 "nie wszystkie implementacje przestrzegają jednak tego wymagania POSIX.1."
825
826 #. type: SH
827 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
828 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
829 #, no-wrap
830 msgid "RETURN VALUE"
831 msgstr "WARTOŚĆ ZWRACANA"
832
833 #. type: Plain text
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 msgid ""
837 "B<wait>(): on success, returns the process ID of the terminated child; on "
838 "failure, -1 is returned."
839 msgstr ""
840 "B<wait>(): po pomyślnym zakończeniu zwraca identyfikator procesu "
841 "zakończonego potomka, w razie błędu zwraca -1."
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "B<waitpid>(): on success, returns the process ID of the child whose state "
848 "has changed; if B<WNOHANG> was specified and one or more child(ren) "
849 "specified by I<pid> exist, but have not yet changed state, then 0 is "
850 "returned. On failure, -1 is returned."
851 msgstr ""
852 "B<waitpid>(): po pomyślnym zakończeniu, zwraca identyfikator procesu, "
853 "którego stan uległ zmianie; jeśli podano B<WNOHANG> i jeden lub więcej z "
854 "potomków podanych w I<pid> istnieje, lecz nie zmienił jeszcze stanu, "
855 "zwracane jest 0. W przypadku niepowodzenia, zwracane jest -1."
856
857 #. FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
858 #. returns the PID of the child. Either this is a bug, or it is intended
859 #. behavior that needs to be documented. See my Jan 2009 LKML mail
860 #. "waitid() return value strangeness when infop is NULL".
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<waitid>(): returns 0 on success or if B<WNOHANG> was specified and no "
866 "child(ren) specified by I<id> has yet changed state; on failure, -1 is "
867 "returned."
868 msgstr ""
869 "B<waitid>(): zwraca 0 po pomyślnym zakończeniu lub gdy podano B<WNOHANG> i "
870 "żaden z potomków podanych w I<id> nie zmienił jeszcze stanu; w przypadku "
871 "błędu zwracane jest -1."
872
873 #. type: Plain text
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 msgid "On failure, each of these calls sets I<errno> to indicate the error."
877 msgstr ""
878 "W przypadku niepowodzenia, wszystkie wywołania ustawiają I<errno>, wskazując "
879 "błąd."
880
881 #. type: SH
882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
884 #, no-wrap
885 msgid "ERRORS"
886 msgstr "BŁĘDY"
887
888 #. type: TP
889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
891 #, no-wrap
892 msgid "B<EAGAIN>"
893 msgstr "B<EAGAIN>"
894
895 #. type: Plain text
896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
898 msgid ""
899 "The PID file descriptor specified in I<id> is nonblocking and the process "
900 "that it refers to has not terminated."
901 msgstr ""
902 "Deskryptor pliku PID podany w I<id> jest nieblokujący, a proces do którego "
903 "się odnosi nie zakończył się."
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<ECHILD>"
910 msgstr "B<ECHILD>"
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 "(for B<wait>()) The calling process does not have any unwaited-for children."
917 msgstr ""
918 "(dla B<wait>()) Proces wywołujący nie ma żadnych potomków, na których "
919 "jeszcze się nie czeka."
920
921 #. type: Plain text
922 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
923 #: opensuse-tumbleweed
924 msgid ""
925 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
926 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
927 "not a child of the calling process. (This can happen for one's own child if "
928 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux\\ "
929 "Notes> section about threads.)"
930 msgstr ""
931 "(dla B<waitpid>() lub B<waitid>()) Proces o zadanym I<pid> (B<waitpid>()) "
932 "lub I<idtype> i I<id> (B<waitid>()) nie istnieje lub nie jest potomkiem "
933 "procesu wywołującego (może się to zdarzyć również w przypadku potomka, który "
934 "ustawił akcję obsługi sygnału B<SIGCHLD> na B<SIG_IGN>; zob. także: wątki w "
935 "rozdziale I<Uwagi\\ linuksowe>)."
936
937 #. type: TP
938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
940 #, no-wrap
941 msgid "B<EINTR>"
942 msgstr "B<EINTR>"
943
944 #. type: Plain text
945 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
946 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
947 msgid ""
948 "B<WNOHANG> was not set and an unblocked signal or a B<SIGCHLD> was caught; "
949 "see B<signal>(7)."
950 msgstr ""
951 "Nie ustawiono B<WNOHANG>, a został przechwycony niezablokowany sygnał lub "
952 "B<SIGCHLD>; zob. B<signal>(7)."
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<EINVAL>"
959 msgstr "B<EINVAL>"
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 "The I<options> argument was invalid."
965 msgstr "Argument I<options> był niepoprawny."
966
967 #. type: TP
968 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
969 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
970 #, no-wrap
971 msgid "B<ESRCH>"
972 msgstr "B<ESRCH>"
973
974 #. type: Plain text
975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
977 msgid "(for B<wait>() or B<waitpid>()) I<pid> is equal to B<INT_MIN>."
978 msgstr "(dla B<wait>() lub B<waitpid>()) I<pid> jest równe B<INT_MIN>."
979
980 #. type: SH
981 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
982 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
983 #, no-wrap
984 msgid "VERSIONS"
985 msgstr "WERSJE"
986
987 #. type: SS
988 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
989 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
990 #, no-wrap
991 msgid "C library/kernel differences"
992 msgstr "Różnice biblioteki C/jądra"
993
994 #. type: Plain text
995 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
996 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
997 msgid ""
998 "B<wait>() is actually a library function that (in glibc) is implemented as "
999 "a call to B<wait4>(2)."
1000 msgstr ""
1001 "B<wait>() jest w rzeczywistością funkcją biblioteczną, która (w glibc) jest "
1002 "zaimplementowana jako wywołanie do B<wait4>(2)."
1003
1004 #. e.g., i386 has the system call, but not x86-64
1005 #. type: Plain text
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 msgid ""
1009 "On some architectures, there is no B<waitpid>() system call; instead, this "
1010 "interface is implemented via a C library wrapper function that calls "
1011 "B<wait4>(2)."
1012 msgstr ""
1013 "Na niektórych architekturach, nie ma wywołania systemowego B<waitpid>(); "
1014 "zamiast tego interfejs ten jest zaimplementowany jako opakowująca funkcja "
1015 "biblioteki C, która wywołuje B<wait4>(2)."
1016
1017 #. type: Plain text
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 msgid ""
1021 "The raw B<waitid>() system call takes a fifth argument, of type I<struct "
1022 "rusage\\ *>. If this argument is non-NULL, then it is used to return "
1023 "resource usage information about the child, in the same manner as "
1024 "B<wait4>(2). See B<getrusage>(2) for details."
1025 msgstr ""
1026 "Surowe wywołanie systemowe B<waitid>() przyjmuje piąty argument, typu "
1027 "I<struct rusage\\ *>. Jeśli argument ten nie wynosi NULL, to jest używany do "
1028 "zwrócenia informacji o użyciu zasobów potomka, w ten sam sposób jak "
1029 "B<wait4>(2). Więcej szczegółów w podręczniku B<getrusage>(2)."
1030
1031 #. type: SH
1032 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1033 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1034 #, no-wrap
1035 msgid "STANDARDS"
1036 msgstr "STANDARDY"
1037
1038 #. type: Plain text
1039 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1040 #: opensuse-tumbleweed
1041 msgid "POSIX.1-2024."
1042 msgstr "POSIX.1-2024."
1043
1044 #. type: SH
1045 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1046 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1047 #, no-wrap
1048 msgid "HISTORY"
1049 msgstr "HISTORIA"
1050
1051 #. type: Plain text
1052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1054 msgid "SVr4, 4.3BSD, POSIX.1-2001."
1055 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
1056
1057 #. type: SH
1058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1060 #, no-wrap
1061 msgid "NOTES"
1062 msgstr "UWAGI"
1063
1064 #. type: Plain text
1065 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1066 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1067 msgid ""
1068 "A child that terminates, but has not been waited for becomes a \"zombie\". "
1069 "The kernel maintains a minimal set of information about the zombie process "
1070 "(PID, termination status, resource usage information) in order to allow the "
1071 "parent to later perform a wait to obtain information about the child. As "
1072 "long as a zombie is not removed from the system via a wait, it will consume "
1073 "a slot in the kernel process table, and if this table fills, it will not be "
1074 "possible to create further processes. If a parent process terminates, then "
1075 "its \"zombie\" children (if any) are adopted by B<init>(1), (or by the "
1076 "nearest \"subreaper\" process as defined through the use of the B<prctl>(2) "
1077 "B<PR_SET_CHILD_SUBREAPER> operation); B<init>(1) automatically performs a "
1078 "wait to remove the zombies."
1079 msgstr ""
1080 "Potomek który się zakończy, ale na którego nie oczekiwano staje się \\"
1081 "[Bq]zombie\\[rq]. Jądro przechowuje minimalny zbiór informacji o procesach "
1082 "zombie (PID, status zakończenia, informacje o użyciu zasobów), aby pozwolić "
1083 "później procesowi macierzystemu na wykonanie oczekiwania, aby pozyskać "
1084 "informacje o potomku. Dopóki zombie nie zostanie usunięty z systemu poprzez "
1085 "oczekiwanie, będzie zajmował miejsce w tablicy procesów jądra, a jeśli ta "
1086 "tablica się wypełni, nie będzie można tworzyć nowych procesów. Jeśli proces "
1087 "macierzysty zakończy się, to ewentualni potomkowie \\[Bq]zombie\\[rq], "
1088 "zostaną zaadoptowani przez B<init>(1), (lub przez najbliższy proces "
1089 "dorzynający (ang. subreaper), według definicji użycia operacji "
1090 "B<PR_SET_CHILD_SUBREAPER> B<prctl>(2)); B<init>(1) automatycznie wykona "
1091 "odczekanie, w celu usunięcia zombie."
1092
1093 #. type: Plain text
1094 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1095 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1096 msgid ""
1097 "POSIX.1-2001 specifies that if the disposition of B<SIGCHLD> is set to "
1098 "B<SIG_IGN> or the B<SA_NOCLDWAIT> flag is set for B<SIGCHLD> (see "
1099 "B<sigaction>(2)), then children that terminate do not become zombies and a "
1100 "call to B<wait>() or B<waitpid>() will block until all children have "
1101 "terminated, and then fail with I<errno> set to B<ECHILD>. (The original "
1102 "POSIX standard left the behavior of setting B<SIGCHLD> to B<SIG_IGN> "
1103 "unspecified. Note that even though the default disposition of B<SIGCHLD> is "
1104 "\"ignore\", explicitly setting the disposition to B<SIG_IGN> results in "
1105 "different treatment of zombie process children.)"
1106 msgstr ""
1107 "POSIX.1-2001 określa, że jeśli jako dyspozycję sygnału B<SIGCHLD> ustawiono "
1108 "na B<SIG_IGN> lub dla B<SIGCHLD> ustawiono znacznik B<SA_NOCLDWAIT> (zob. "
1109 "B<sigaction>(2)), to kończony potomek nie staje się zombie, a wywołanie "
1110 "B<wait>() lub B<waitpid>() zablokuje, dopóki wszyscy potomkowie nie zakończą "
1111 "się, a następnie zawiedzie z I<errno> ustawionym na B<ECHILD>. (Pierwotny "
1112 "standard POSIX pozostawiał zachowanie ustawienia B<SIGCHLD> na B<SIG_IGN> "
1113 "nieokreślonym. Proszę zauważyć, że choć domyślną dyspozycją B<SIGCHLD> jest "
1114 "\\[Bq]ignorowanie\\[rq], to wyraźne ustawienie dyspozycji na B<SIG_IGN> daje "
1115 "inne zachowanie w stosunku do potomków procesu zombie)."
1116
1117 #. type: Plain text
1118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1120 msgid ""
1121 "Linux 2.6 conforms to the POSIX requirements. However, Linux 2.4 (and "
1122 "earlier) does not: if a B<wait>() or B<waitpid>() call is made while "
1123 "B<SIGCHLD> is being ignored, the call behaves just as though B<SIGCHLD> were "
1124 "not being ignored, that is, the call blocks until the next child terminates "
1125 "and then returns the process ID and status of that child."
1126 msgstr ""
1127 "Linux 2.6 jest zgodny z wymaganiami POSIX. Jednak Linux 2.4 (i wcześniejsze) "
1128 "nie są: jeśli wywołanie B<wait>() lub B<waitpid>() jest wykonywane z "
1129 "ignorowaniem B<SIGCHLD>, zachowuje się ono tak, jakby B<SIGCHLD> nie były "
1130 "ignorowane, to znaczy, wywołanie zostaje zablokowane do chwili zakończenia "
1131 "następnego potomka, a następnie zwraca identyfikator procesu i status tego "
1132 "potomka."
1133
1134 #. type: SS
1135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1137 #, no-wrap
1138 msgid "Linux notes"
1139 msgstr "Uwagi linuksowe"
1140
1141 #. type: Plain text
1142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1144 msgid ""
1145 "In the Linux kernel, a kernel-scheduled thread is not a distinct construct "
1146 "from a process. Instead, a thread is simply a process that is created using "
1147 "the Linux-unique B<clone>(2) system call; other routines such as the "
1148 "portable B<pthread_create>(3) call are implemented using B<clone>(2). "
1149 "Before Linux 2.4, a thread was just a special case of a process, and as a "
1150 "consequence one thread could not wait on the children of another thread, "
1151 "even when the latter belongs to the same thread group. However, POSIX "
1152 "prescribes such functionality, and since Linux 2.4 a thread can, and by "
1153 "default will, wait on children of other threads in the same thread group."
1154 msgstr ""
1155 "Pod Linuksem, wątek zarządzany przez jądro nie jest uruchamiany inaczej niż "
1156 "zwykły proces. Zamiast tego wątek jest po prostu procesem stworzonym przez "
1157 "wywołanie dostępnej tylko pod Linuksem funkcji systemowej B<clone>(2). Inne "
1158 "funkcje, jak na przykład przenośne B<pthread_create>(3) są zaimplementowane "
1159 "przez wywołania funkcji B<clone>(2). W wersjach Linuksa poprzedzających 2.4, "
1160 "wątek był po prostu specyficznym przypadkiem procesu. W związku z tym nie "
1161 "mógł on czekać na potomków innego wątku nawet w przypadku, gdy ten drugi "
1162 "wątek należał do tej samej grupy wątków. Jednakże, POSIX zaleca taką "
1163 "funkcjonalność, więc począwszy od Linuksa 2.4 wątek może (i domyślnie "
1164 "będzie) czekać na potomków innych wątków należących do tej samej grupy "
1165 "wątków."
1166
1167 #. commit 91c4e8ea8f05916df0c8a6f383508ac7c9e10dba
1168 #. type: Plain text
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 msgid ""
1172 "The following Linux-specific I<options> are for use with children created "
1173 "using B<clone>(2); they can also, since Linux 4.7, be used with B<waitid>():"
1174 msgstr ""
1175 "Następujące, specyficzne dla Linuksa opcje w I<options> są przeznaczone dla "
1176 "potomków utworzonych za pomocą B<clone>(2); mogą być one również, od Linuksa "
1177 "4.7, używane z B<waitid>():"
1178
1179 #. type: TP
1180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1182 #, no-wrap
1183 msgid "B<__WCLONE>"
1184 msgstr "B<__WCLONE>"
1185
1186 #. since 0.99pl10
1187 #. type: Plain text
1188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1190 msgid ""
1191 "Wait for \"clone\" children only. If omitted, then wait for \"non-clone\" "
1192 "children only. (A \"clone\" child is one which delivers no signal, or a "
1193 "signal other than B<SIGCHLD> to its parent upon termination.) This option "
1194 "is ignored if B<__WALL> is also specified."
1195 msgstr ""
1196 "Oczekuje tylko na potomków typu \\[Bq]clone\\[rq]. Jeśli opcja ta zostanie "
1197 "pominięta oczekiwanie będzie występować tylko na potomków typu \\[Bq]nie-"
1198 "clone\\[rq]. (Potomek typu \\[Bq]clone\\[rq] to taki, który po zakończeniu "
1199 "nie dostarcza swojemu procesowi macierzystemu sygnału lub dostarcza sygnał "
1200 "inny niż B<SIGCHLD>.) Opcja ta jest ignorowana, jeśli ustawiona jest również "
1201 "opcja B<__WALL>."
1202
1203 #. type: TP
1204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1206 #, no-wrap
1207 msgid "B<__WALL> (since Linux 2.4)"
1208 msgstr "B<__WALL> (od Linuksa 2.4)"
1209
1210 #. since patch-2.3.48
1211 #. type: Plain text
1212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1214 msgid "Wait for all children, regardless of type (\"clone\" or \"non-clone\")."
1215 msgstr ""
1216 "Oczekuje na procesy potomne niezależnie od ich typu (\\[Bq]clone\\[rq] lub \\"
1217 "[Bq]non-clone\\[rq])."
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<__WNOTHREAD> (since Linux 2.4)"
1224 msgstr "B<__WNOTHREAD> (od Linuksa 2.4)"
1225
1226 #. since patch-2.4.0-test8
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 ""
1231 "Do not wait for children of other threads in the same thread group. This "
1232 "was the default before Linux 2.4."
1233 msgstr ""
1234 "Nie oczekuje na procesy potomne innych wątków w obrębie tej samej grupy "
1235 "wątków. Było to w Linuksie domyślne przed wersją 2.4."
1236
1237 #. commit bf959931ddb88c4e4366e96dd22e68fa0db9527c
1238 #. prevents cases where an unreapable zombie is created if
1239 #. /sbin/init doesn't use __WALL.
1240 #. type: Plain text
1241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1243 msgid ""
1244 "Since Linux 4.7, the B<__WALL> flag is automatically implied if the child is "
1245 "being ptraced."
1246 msgstr ""
1247 "Od Linuksa 4.7, znacznik B<__WALL> jest automatycznie dorozumiany, gdy "
1248 "potomek jest śledzony (ptraced)."
1249
1250 #. type: SH
1251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1253 #, no-wrap
1254 msgid "BUGS"
1255 msgstr "USTERKI"
1256
1257 #. type: Plain text
1258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1260 msgid ""
1261 "According to POSIX.1-2008, an application calling B<waitid>() must ensure "
1262 "that I<infop> points to a I<siginfo_t> structure (i.e., that it is a non-"
1263 "null pointer). On Linux, if I<infop> is NULL, B<waitid>() succeeds, and "
1264 "returns the process ID of the waited-for child. Applications should avoid "
1265 "relying on this inconsistent, nonstandard, and unnecessary feature."
1266 msgstr ""
1267 "Zgodnie z POSIX.1-2008, aplikacje wywołujące B<waitid>() muszą upewnić się, "
1268 "że I<infop> wskazuje na strukturę I<siginfo_t> (tj. jest nie to pusty "
1269 "wskaźnik). W Linuksie, jeśli I<infop> wynosi NULL, to B<waitid>() kończy się "
1270 "powodzeniem, zwracając identyfikator procesu oczekiwanego potomka. Aplikacje "
1271 "powinny unikać polegania na tym niespójnym, niestandardowym i niepotrzebnym "
1272 "zachowaniu."
1273
1274 #. type: SH
1275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1277 #, no-wrap
1278 msgid "EXAMPLES"
1279 msgstr "PRZYKŁADY"
1280
1281 #. fork.2 refers to this example program.
1282 #. type: Plain text
1283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1285 msgid ""
1286 "The following program demonstrates the use of B<fork>(2) and B<waitpid>(). "
1287 "The program creates a child process. If no command-line argument is "
1288 "supplied to the program, then the child suspends its execution using "
1289 "B<pause>(2), to allow the user to send signals to the child. Otherwise, if "
1290 "a command-line argument is supplied, then the child exits immediately, using "
1291 "the integer supplied on the command line as the exit status. The parent "
1292 "process executes a loop that monitors the child using B<waitpid>(), and uses "
1293 "the W*() macros described above to analyze the wait status value."
1294 msgstr ""
1295 "Poniższy program demonstruje użycie B<fork>(2) i B<waitpid>(). Program "
1296 "tworzy proces potomny. Jeśli nie poda się argumentów wiersza poleceń, "
1297 "potomek zawiesza swoje wykonanie za pomocą B<pause>(2), aby pozwolić "
1298 "użytkownikowi wysyłać sygnały do potomka. W przeciwnym przypadku, gdy poda "
1299 "się argumenty wiersza poleceń, potomek bezzwłocznie wychodzi, używając "
1300 "liczby podanej w wierszu polecenia jako statusu zakończenia. Proces "
1301 "macierzysty wykonuje pętlę monitorującą potomka za pomocą B<waitpid>() i "
1302 "używa makr W*() opisanych powyżej, do analizy wartości statusu oczekiwania."
1303
1304 #. type: Plain text
1305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1307 msgid "The following shell session demonstrates the use of the program:"
1308 msgstr "Poniższa sesja powłoki demonstruje użycie programu:"
1309
1310 #. type: Plain text
1311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1313 #, no-wrap
1314 msgid ""
1315 "$B< ./a.out &>\n"
1316 "Child PID is 32360\n"
1317 "[1] 32359\n"
1318 "$B< kill -STOP 32360>\n"
1319 "stopped by signal 19\n"
1320 "$B< kill -CONT 32360>\n"
1321 "continued\n"
1322 "$B< kill -TERM 32360>\n"
1323 "killed by signal 15\n"
1324 "[1]+ Done ./a.out\n"
1325 "$\n"
1326 msgstr ""
1327 "$B< ./a.out &>\n"
1328 "PID potomka to 32360\n"
1329 "[1] 32359\n"
1330 "$B< kill -STOP 32360>\n"
1331 "zatrzymany sygnałem 19\n"
1332 "$B< kill -CONT 32360>\n"
1333 "wznowiony\n"
1334 "$B< kill -TERM 32360>\n"
1335 "zabity sygnałem 15\n"
1336 "[1]+ Zakończony ./a.out\n"
1337 "$\n"
1338
1339 #. type: SS
1340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1342 #, no-wrap
1343 msgid "Program source"
1344 msgstr "Kod źródłowy programu"
1345
1346 #. type: Plain text
1347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1349 #, no-wrap
1350 msgid ""
1351 "#include E<lt>stdint.hE<gt>\n"
1352 "#include E<lt>stdio.hE<gt>\n"
1353 "#include E<lt>stdlib.hE<gt>\n"
1354 "#include E<lt>sys/types.hE<gt>\n"
1355 "#include E<lt>sys/wait.hE<gt>\n"
1356 "#include E<lt>unistd.hE<gt>\n"
1357 "\\&\n"
1358 "int\n"
1359 "main(int argc, char *argv[])\n"
1360 "{\n"
1361 " int wstatus;\n"
1362 " pid_t cpid, w;\n"
1363 "\\&\n"
1364 " cpid = fork();\n"
1365 " if (cpid == -1) {\n"
1366 " perror(\"fork\");\n"
1367 " exit(EXIT_FAILURE);\n"
1368 " }\n"
1369 "\\&\n"
1370 " if (cpid == 0) { /* Code executed by child */\n"
1371 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1372 " if (argc == 1)\n"
1373 " pause(); /* Wait for signals */\n"
1374 " _exit(atoi(argv[1]));\n"
1375 "\\&\n"
1376 " } else { /* Code executed by parent */\n"
1377 " do {\n"
1378 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1379 " if (w == -1) {\n"
1380 " perror(\"waitpid\");\n"
1381 " exit(EXIT_FAILURE);\n"
1382 " }\n"
1383 "\\&\n"
1384 " if (WIFEXITED(wstatus)) {\n"
1385 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1386 " } else if (WIFSIGNALED(wstatus)) {\n"
1387 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1388 " } else if (WIFSTOPPED(wstatus)) {\n"
1389 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1390 " } else if (WIFCONTINUED(wstatus)) {\n"
1391 " printf(\"continued\\[rs]n\");\n"
1392 " }\n"
1393 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1394 " exit(EXIT_SUCCESS);\n"
1395 " }\n"
1396 "}\n"
1397 msgstr ""
1398 "#include E<lt>stdint.hE<gt>\n"
1399 "#include E<lt>stdio.hE<gt>\n"
1400 "#include E<lt>stdlib.hE<gt>\n"
1401 "#include E<lt>sys/types.hE<gt>\n"
1402 "#include E<lt>sys/wait.hE<gt>\n"
1403 "#include E<lt>unistd.hE<gt>\n"
1404 "\\&\n"
1405 "int\n"
1406 "main(int argc, char *argv[])\n"
1407 "{\n"
1408 " int wstatus;\n"
1409 " pid_t cpid, w;\n"
1410 "\\&\n"
1411 " cpid = fork();\n"
1412 " if (cpid == -1) {\n"
1413 " perror(\"fork\");\n"
1414 " exit(EXIT_FAILURE);\n"
1415 " }\n"
1416 "\\&\n"
1417 " if (cpid == 0) { /* Kod wykonywany przez potomka */\n"
1418 " printf(\"PID potomka to %jd\\[rs]n\", (intmax_t) getpid());\n"
1419 " if (argc == 1)\n"
1420 " pause(); /* Oczekiwanie na sygnały */\n"
1421 " _exit(atoi(argv[1]));\n"
1422 "\\&\n"
1423 " } else { /* Kod wykonywany przez rodzica */\n"
1424 " do {\n"
1425 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1426 " if (w == -1) {\n"
1427 " perror(\"waitpid\");\n"
1428 " exit(EXIT_FAILURE);\n"
1429 " }\n"
1430 "\\&\n"
1431 " if (WIFEXITED(wstatus)) {\n"
1432 " printf(\"wyszedł, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1433 " } else if (WIFSIGNALED(wstatus)) {\n"
1434 " printf(\"zabity sygnałem %d\\[rs]n\", WTERMSIG(wstatus));\n"
1435 " } else if (WIFSTOPPED(wstatus)) {\n"
1436 " printf(\"zatrzymany sygnałem %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1437 " } else if (WIFCONTINUED(wstatus)) {\n"
1438 " printf(\"wznowiony\\[rs]n\");\n"
1439 " }\n"
1440 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1441 " exit(EXIT_SUCCESS);\n"
1442 " }\n"
1443 "}\n"
1444
1445 #. SRC END
1446 #. type: SH
1447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1449 #, no-wrap
1450 msgid "SEE ALSO"
1451 msgstr "ZOBACZ TAKŻE"
1452
1453 #. type: Plain text
1454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1456 msgid ""
1457 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1458 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1459 "B<core>(5), B<credentials>(7), B<signal>(7)"
1460 msgstr ""
1461 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1462 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1463 "B<core>(5), B<credentials>(7), B<signal>(7)"
1464
1465 #. type: TH
1466 #: debian-trixie
1467 #, no-wrap
1468 msgid "2024-06-15"
1469 msgstr "15 czerwca 2024 r."
1470
1471 #. type: TH
1472 #: debian-trixie
1473 #, no-wrap
1474 msgid "Linux man-pages 6.9.1"
1475 msgstr "Linux man-pages 6.9.1"
1476
1477 #. type: Plain text
1478 #: debian-trixie
1479 msgid "Standard C library (I<libc>, I<-lc>)"
1480 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
1481
1482 #. type: Plain text
1483 #: debian-trixie
1484 #, no-wrap
1485 msgid ""
1486 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1487 " /* This is the glibc and POSIX interface; see\n"
1488 " NOTES for information on the raw system call. */\n"
1489 msgstr ""
1490 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1491 " /* Jest to interfejs glibc i POSIX; zob. UWAGI, aby\n"
1492 " uzyskać informacje o surowym wywołaniu systemowym. */\n"
1493
1494 #. type: TP
1495 #: debian-trixie fedora-44 fedora-rawhide
1496 #, no-wrap
1497 msgid "B<WCOREDUMP(>I<wstatus>B<)>"
1498 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1499
1500 #. type: Plain text
1501 #: debian-trixie fedora-44 fedora-rawhide
1502 msgid ""
1503 "This macro is not specified in POSIX.1-2001 and is not available on some "
1504 "UNIX implementations (e.g., AIX, SunOS). Therefore, enclose its use inside "
1505 "I<#ifdef WCOREDUMP ... #endif>."
1506 msgstr ""
1507 "Makro nie jest określone w POSIX.1-2001 i nie jest dostępne w niektórych "
1508 "implementacjach Uniksa (np. AIX, SunOS). Należy go zatem używać wewnątrz "
1509 "I<#ifdef WCOREDUMP ... #endif>."
1510
1511 #. type: TP
1512 #: debian-trixie fedora-44 fedora-rawhide
1513 #, no-wrap
1514 msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
1515 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1516
1517 #. type: TP
1518 #: debian-trixie fedora-44 fedora-rawhide
1519 #, no-wrap
1520 msgid "I<idtype> == B<P_PID>"
1521 msgstr "I<idtype> == B<P_PID>"
1522
1523 #. type: TP
1524 #: debian-trixie fedora-44 fedora-rawhide
1525 #, no-wrap
1526 msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
1527 msgstr "I<idtype> == B<P_PIDFD> (od Linuksa 5.4)"
1528
1529 #. type: TP
1530 #: debian-trixie fedora-44 fedora-rawhide
1531 #, no-wrap
1532 msgid "I<idtype> == B<P_PGID>"
1533 msgstr "I<idtype> == B<P_PGID>"
1534
1535 #. type: TP
1536 #: debian-trixie fedora-44 fedora-rawhide
1537 #, no-wrap
1538 msgid "I<idtype> == B<P_ALL>"
1539 msgstr "I<idtype> == B<P_ALL>"
1540
1541 #. type: Plain text
1542 #: debian-trixie fedora-44 fedora-rawhide
1543 msgid ""
1544 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
1545 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
1546 "not a child of the calling process. (This can happen for one's own child if "
1547 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux Notes> "
1548 "section about threads.)"
1549 msgstr ""
1550 "(dla B<waitpid>() lub B<waitid>()) Proces o zadanym I<pid> (B<waitpid>()) "
1551 "lub I<idtype> i I<id> (B<waitid>()) nie istnieje lub nie jest potomkiem "
1552 "procesu wywołującego (może się to zdarzyć również w przypadku potomka, który "
1553 "ustawił akcję obsługi sygnału B<SIGCHLD> na B<SIG_IGN>; zob. także: wątki w "
1554 "rozdziale I<Uwagi linuksowe>)."
1555
1556 #. type: Plain text
1557 #: debian-trixie fedora-44 fedora-rawhide
1558 msgid "POSIX.1-2008."
1559 msgstr "POSIX.1-2008."
1560
1561 #. type: TH
1562 #: fedora-44 fedora-rawhide
1563 #, no-wrap
1564 msgid "2024-07-23"
1565 msgstr "23 lipca 2024 r."
1566
1567 #. type: TH
1568 #: fedora-44 fedora-rawhide
1569 #, no-wrap
1570 msgid "Linux man-pages 6.13"
1571 msgstr "Linux man-pages 6.13"
1572
1573 #. type: Plain text
1574 #: fedora-44 fedora-rawhide
1575 #, no-wrap
1576 msgid ""
1577 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1578 " /* This is the glibc and POSIX interface; see\n"
1579 " VERSIONS for information on the raw system call. */\n"
1580 msgstr ""
1581 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1582 " /* Jest to interfejs glibc i POSIX; zob. WERSJE, aby\n"
1583 " uzyskać informacje o surowym wywołaniu systemowym. */\n"
1584
1585 #. type: TH
1586 #: mageia-cauldron
1587 #, no-wrap
1588 msgid "Linux man-pages 6.17"
1589 msgstr "Linux man-pages 6.17"
1590
1591 #. type: TH
1592 #: opensuse-leap-16-1 opensuse-tumbleweed
1593 #, no-wrap
1594 msgid "Linux man-pages (unreleased)"
1595 msgstr "Linux man-pages (niewydane)"