Debian Codegraph @

po/da/man2/wait.2.po

raw
1 # Danish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Joe Hansen <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.29.1\n"
8 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
9 "PO-Revision-Date: 2026-03-02 16:35+0100\n"
10 "Last-Translator: Joe Hansen <[email protected]>\n"
11 "Language-Team: Danish <[email protected]>\n"
12 "Language: da\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
18 #. type: TH
19 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
20 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
21 #, no-wrap
22 msgid "wait"
23 msgstr "wait"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-08"
30 msgstr "8. februar 2026"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "NAVN"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "wait, waitpid, waitid - wait for process to change state"
49 msgstr "wait, waitpid, waitid - vent på at processen ændrer tilstand"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr "BIBLIOTEK"
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "C-standardbibliotek (I<libc>,\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "SYNOPSIS"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>sys/wait.hE<gt>>\n"
76 msgstr "B<#include E<lt>sys/wait.hE<gt>>\n"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
84 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
85 msgstr ""
86 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
87 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<tilvalg>B<);>\n"
88
89 #. type: Plain text
90 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
91 #: opensuse-tumbleweed
92 #, no-wrap
93 msgid ""
94 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
95 " /* This is the glibc and POSIX interface; see\n"
96 " VERSIONS for information on the raw system call. */\n"
97 msgstr ""
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 " /* Dette er glibc- og POSIX-grænsefladen; se\n"
100 " VERSIONS for information om det rå systemkald. */\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
107 msgstr ""
108 "Feature Test Macro Requirements for glibc (se B<feature_test_macros>(7)):"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid "B<waitid>():"
114 msgstr "B<waitid>():"
115
116 #. (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid ""
122 " Since glibc 2.26:\n"
123 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
124 " glibc 2.25 and earlier:\n"
125 " _XOPEN_SOURCE\n"
126 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
127 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
128 msgstr ""
129 " Siden glibc 2.26:\n"
130 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
131 " glibc 2.25 og tidligere:\n"
132 " _XOPEN_SOURCE\n"
133 " || /* Siden glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
134 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
135
136 #. type: SH
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid "DESCRIPTION"
141 msgstr "BESKRIVELSE"
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "All of these system calls are used to wait for state changes in a child of "
148 "the calling process, and obtain information about the child whose state has "
149 "changed. A state change is considered to be: the child terminated; the "
150 "child was stopped by a signal; or the child was resumed by a signal. In the "
151 "case of a terminated child, performing a wait allows the system to release "
152 "the resources associated with the child; if a wait is not performed, then "
153 "the terminated child remains in a \"zombie\" state (see NOTES below)."
154 msgstr ""
155 "Alle disse systemkald bruges til at vente på tilstandsændringer i en "
156 "underproces af den kaldende proces, og hente information om underprocessen, "
157 "hvis tilstand har ændret sig. En tilstandsændring anses for at være: "
158 "underprocessen afsluttedes; underprocessen blev stoppet af et signal; eller "
159 "underprocessen blev genoptaget af et signal. I tilfældet med en afsluttet "
160 "underproces vil udførelse af en wait gøre det muligt for systemet at frigive "
161 "ressourcerne associeret med underprocessen; hvis en wait ikke udføres, så "
162 "bliver den afsluttede underproces i en »zombie«-tilstand (se NOTES nedenfor)."
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "If a child has already changed state, then these calls return immediately. "
169 "Otherwise, they block until either a child changes state or a signal handler "
170 "interrupts the call (assuming that system calls are not automatically "
171 "restarted using the B<SA_RESTART> flag of B<sigaction>(2)). In the "
172 "remainder of this page, a child whose state has changed and which has not "
173 "yet been waited upon by one of these system calls is termed I<waitable>."
174 msgstr ""
175 "Hvis en underproces allerede har ændret tilstand, så returneres disse kald "
176 "øjeblikkeligt. ellers blokerer de indtil en underproces ændrer tilstand "
177 "eller en signalhåndtering afbryder kaldet (under antagelse af at "
178 "systemkaldene ikke automatisk genstartes via flaget B<SA_RESTART> for "
179 "B<sigaction>(2)). På resten af denne side vil en underproces, hvis tilstand "
180 "har ændret sig og endnu ikke har modtaget en wait af et af disse systemkald "
181 "blive kaldt for I<waitable>."
182
183 #. type: SS
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "wait() and waitpid()"
188 msgstr "wait() og waitpid()"
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "The B<wait>() system call suspends execution of the calling thread until "
195 "one of its children terminates. The call I<wait(&wstatus)> is equivalent to:"
196 msgstr ""
197 "Systemkaldet B<wait>() suspenderer afviklingen af den kaldende tråd indtil "
198 "en af dens underprocesser afsluttes. Kaldet I<wait(&wstatus)> svarer til:"
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "waitpid(-1, &wstatus, 0);\n"
205 msgstr "waitpid(-1, &wstatus, 0);\n"
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 msgid ""
211 "The B<waitpid>() system call suspends execution of the calling thread until "
212 "a child specified by I<pid> argument has changed state. By default, "
213 "B<waitpid>() waits only for terminated children, but this behavior is "
214 "modifiable via the I<options> argument, as described below."
215 msgstr ""
216 "Systemkaldet B<waitpid>() suspenderer afviklingen af den kaldende tråd "
217 "indtil en underproces angivet af argumentet I<pid> har ændret tilstand. Som "
218 "standard venter B<waitpid>() kun på afsluttede underprocesser, men denne "
219 "opførsel kan ændres via argumentet I<options>, som beskrevet nedenfor."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "The value of I<pid> can be:"
225 msgstr "Værdien af I<pid> kan være:"
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "E<lt> B<-1>"
232 msgstr "E<lt> B<-1>"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "meaning wait for any child process whose process group ID is equal to the "
239 "absolute value of I<pid>."
240 msgstr ""
241 "vent på nehver underproces hvis procesgruppe-id svarer til den absolutte "
242 "værdi for I<pid>."
243
244 #. type: TP
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "B<-1>"
249 msgstr "B<-1>"
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid "meaning wait for any child process."
255 msgstr "vent på enhver underproces."
256
257 #. type: TP
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "B<0>"
262 msgstr "B<0>"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid ""
268 "meaning wait for any child process whose process group ID is equal to that "
269 "of the calling process at the time of the call to B<waitpid>()."
270 msgstr ""
271 "vent på enhver underproces hvis procesgruppe-id svarer til den kaldende "
272 "proces på tidspunktet for kaldet til B<waitpid>()."
273
274 #. type: TP
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "E<gt> B<0>"
279 msgstr "E<gt> B<0>"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "meaning wait for the child whose process ID is equal to the value of I<pid>."
286 msgstr "vent på underprocessen hvis proces-id svarer til værdien for I<pid>."
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 "The value of I<options> is an OR of zero or more of the following constants:"
293 msgstr ""
294 "Værdien af I<tilvalg> er en OR af nul eller flere af de følgende konstanter:"
295
296 #. type: TP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<WNOHANG>"
301 msgstr "B<WNOHANG>"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "return immediately if no child has exited."
307 msgstr "returner øjeblikkeligt hvis ingen underproces er afsluttet."
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<WUNTRACED>"
314 msgstr "B<WUNTRACED>"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "also return if a child has stopped (but not traced via B<ptrace>(2)). "
321 "Status for I<traced> children which have stopped is provided even if this "
322 "option is not specified."
323 msgstr ""
324 "returnerer også hvis en underproces er stoppet (men ikke sporet via "
325 "B<ptrace>(2)). Status for I<traced>-underprocesser, der er stoppet tilbydes "
326 "selv om denne mulighed ikke er angivet."
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "B<WCONTINUED> (since Linux 2.6.10)"
333 msgstr "B<WCONTINUED> (siden Linux 2.6.10)"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "also return if a stopped child has been resumed by delivery of B<SIGCONT>."
340 msgstr ""
341 "returnerer også hvis en stoppet underproces er blevet genoptaget ved "
342 "levering af B<SIGCONT>."
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid "(For Linux-only options, see below.)"
348 msgstr "(For tilvalg kun for Linux, se nedenfor)."
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "If I<wstatus> is not NULL, B<wait>() and B<waitpid>() store status "
355 "information in the I<int> to which it points. This integer can be inspected "
356 "with the following macros (which take the integer itself as an argument, not "
357 "a pointer to it, as is done in B<wait>() and B<waitpid>()!):"
358 msgstr ""
359 "Hvis I<wstatus> er NULL så lagrer B<wait>() og B<waitpid>() "
360 "statusinformation i den I<int> der peges på. Dette heltal kan inspiceres med "
361 "de følgende makroer (der bruger selve heltallet som et argument, ikke en "
362 "tekstsøger, som det gøres i B<wait>() og B<waitpid>()!):"
363
364 #. type: TP
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "B<WIFEXITED(>I<wstatus>B<)>"
369 msgstr "B<WIFEXITED(>I<wstatus>B<)>"
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "returns true if the child terminated normally, that is, by calling "
376 "B<exit>(3) or B<_exit>(2), or by returning from main()."
377 msgstr ""
378 "returnerer true (sand) hvis underprocesen blev afsluttet normalt, det vil "
379 "sige, ved at kalde B<exit>(3) eller B<_exit>(2), eller ved at returnere fra "
380 "main()."
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<WEXITSTATUS(>I<wstatus>B<)>"
387 msgstr "B<WEXITSTATUS(>I<wstatus>B<)>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "returns the exit status of the child. This consists of the least "
394 "significant 8 bits of the I<status> argument that the child specified in a "
395 "call to B<exit>(3) or B<_exit>(2) or as the argument for a return "
396 "statement in main(). This macro should be employed only if B<WIFEXITED> "
397 "returned true."
398 msgstr ""
399 "returnerer afslutningsstatus for underprocessen. Denne består af de mindst "
400 "signifikante 8 bit for argumentet I<status>, som underprocessen angav i et "
401 "kald til B<exit>(3) eller B<_exit>(2) eller som argumentet for et "
402 "returudtryk i main(). Denne makro bør kun udrulles hvis B<WIFEXITED> "
403 "returnerede true (sand)."
404
405 #. type: TP
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "B<WIFSIGNALED(>I<wstatus>B<)>"
410 msgstr "B<WIFSIGNALED(>I<wstatus>B<)>"
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid "returns true if the child process was terminated by a signal."
416 msgstr ""
417 "returnerer true (sand) hvis underprocessen blev afsluttet af et signal."
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<WTERMSIG(>I<wstatus>B<)>"
424 msgstr "B<WTERMSIG(>I<wstatus>B<)>"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "returns the number of the signal that caused the child process to "
431 "terminate. This macro should be employed only if B<WIFSIGNALED> returned "
432 "true."
433 msgstr ""
434 "returnerer nummeret for signalet, der medførte at underprocessen blev "
435 "afsluttet. Denne makro bør kun anvendes hvis B<WIFSIGNALED> returnerede true "
436 "(sand)."
437
438 #. type: TP
439 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
440 #: opensuse-tumbleweed
441 #, no-wrap
442 msgid "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
443 msgstr "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "returns true if the child produced a core dump (see B<core>(5)). This macro "
450 "should be employed only if B<WIFSIGNALED> returned true."
451 msgstr ""
452 "returnerer true (sand) hvis underprocessen fremstillede et kernedump (se "
453 "B<core>(5)). Denne makro skal kun bruges hvis B<WIFSIGNALED> returnede true."
454
455 #. type: TP
456 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
457 #: opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
460 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "returns true if the child process was stopped by delivery of a signal; this "
467 "is possible only if the call was done using B<WUNTRACED> or when the child "
468 "is being traced (see B<ptrace>(2))."
469 msgstr ""
470 "returnerer true (sand) hvis underprocessen blev stoppet af en levering af et "
471 "signal; dette er kun muligt hvis kaldet blev udført via B<WUNTRACED> eller "
472 "når underprocessen bliver sporet (se B<ptrace>(2))."
473
474 #. type: TP
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "B<WSTOPSIG(>I<wstatus>B<)>"
479 msgstr "B<WSTOPSIG(>I<wstatus>B<)>"
480
481 #. type: Plain text
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "returns the number of the signal which caused the child to stop. This macro "
486 "should be employed only if B<WIFSTOPPED> returned true."
487 msgstr ""
488 "returnerer nummeret for signalet som fik underprocessen til at stoppe. Denne "
489 "makro bør kun bruges hvis B<WIFSTOPPED> returnerede true."
490
491 #. type: TP
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "B<WIFCONTINUED(>I<wstatus>B<)>"
496 msgstr "B<WIFCONTINUED(>I<wstatus>B<)>"
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "(since Linux 2.6.10) returns true if the child process was resumed by "
503 "delivery of B<SIGCONT>."
504 msgstr ""
505 "(siden Linux 2.6.10) returnerer true (sand) hvis underprocessen blev "
506 "genoptaget ved levering af B<SIGCONT>."
507
508 #. type: SS
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "waitid()"
513 msgstr "waitid()"
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid ""
519 "The B<waitid>() system call (available since Linux 2.6.9) provides more "
520 "precise control over which child state changes to wait for."
521 msgstr ""
522 "Systemkaldet B<waitid>() (tilgængelig siden Linux 2.6.9) tilbyder mere "
523 "præcis kontrol over hvilke tilstandændringer for underprocesser, der skal "
524 "ventes på."
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 msgid ""
530 "The I<idtype> and I<id> arguments select the child(ren) to wait for, as "
531 "follows:"
532 msgstr ""
533 "Argumenterne I<idtype> og I<id> vælger underprocesserne, der skal ventes på, "
534 "som følgende:"
535
536 #. type: TP
537 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
538 #: opensuse-tumbleweed
539 #, no-wrap
540 msgid "I<idtype> == \\f[B]P_PID\\fR"
541 msgstr "I<idtype> == \\f[B]P_PID\\fR"
542
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid "Wait for the child whose process ID matches I<id>."
547 msgstr "Vent på underprocessen hvis proces-id matcher I<id>."
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_PIDFD\\fR (since Linux 5.4)"
554 msgstr "I<idtype> == \\f[B]P_PIDFD\\fR (siden Linux 5.4)"
555
556 #. commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "Wait for the child referred to by the PID file descriptor specified in "
562 "I<id>. (See B<pidfd_open>(2) for further information on PID file "
563 "descriptors.)"
564 msgstr ""
565 "Vent for underprocessen refereret til af PID-fildeskriptoren angivet i "
566 "I<id>. (Se B<pidfd_open>(2) for yderligere information om PID-"
567 "fildeskriptorer)."
568
569 #. type: TP
570 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
571 #: opensuse-tumbleweed
572 #, no-wrap
573 msgid "I<idtype> == \\f[B]P_PGID\\fR"
574 msgstr "I<idtype> == \\f[B]P_PGID\\fR"
575
576 #. commit 821cc7b0b205c0df64cce59aacc330af251fa8f7
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "Wait for any child whose process group ID matches I<id>. Since Linux 5.4, "
582 "if I<id> is zero, then wait for any child that is in the same process group "
583 "as the caller's process group at the time of the call."
584 msgstr ""
585 "Vent på en underproces hvis procesgruppe-id machter I<id>. Siden Linux 5.4, "
586 "hvis I<id> er nul, så vent på eventuelle underprocesser, der er i den samme "
587 "procesgruppe som kalderens procesgruppe på tidspunktet for kaldet."
588
589 #. type: TP
590 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
591 #: opensuse-tumbleweed
592 #, no-wrap
593 msgid "I<idtype> == \\f[B]P_ALL\\fR"
594 msgstr "I<idtype> == \\f[B]P_ALL\\fR"
595
596 #. type: Plain text
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 msgid "Wait for any child; I<id> is ignored."
600 msgstr "Vent på en eventuel underproces; I<id> bliver ignoreret."
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid ""
606 "The child state changes to wait for are specified by ORing one or more of "
607 "the following flags in I<options>:"
608 msgstr ""
609 "Underprocestilstanden ændres til vent på er angivet af ORing en eller flere "
610 "af de følgende flag i I<options>:"
611
612 #. type: TP
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid "B<WEXITED>"
617 msgstr "B<WEXITED>"
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid "Wait for children that have terminated."
623 msgstr "Vent på underprocesser der er afsluttet."
624
625 #. type: TP
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "B<WSTOPPED>"
630 msgstr "B<WSTOPPED>"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid "Wait for children that have been stopped by delivery of a signal."
636 msgstr "Vent på underprocesser der er blevet stoppet af en signallevering."
637
638 #. type: TP
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 #, no-wrap
642 msgid "B<WCONTINUED>"
643 msgstr "B<WCONTINUED>"
644
645 #. type: Plain text
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 msgid ""
649 "Wait for (previously stopped) children that have been resumed by delivery of "
650 "B<SIGCONT>."
651 msgstr ""
652 "Vent på (tidligere stoppet) underproces, der er blevet genoptaget ved "
653 "levering af B<SIGCONT>."
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid "The following flags may additionally be ORed in I<options>:"
659 msgstr "De følgende flag kan yderligere blive ORed i I<options>:"
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 "As for B<waitpid>()."
665 msgstr "Som for B<waitpid>()."
666
667 #. type: TP
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "B<WNOWAIT>"
672 msgstr "B<WNOWAIT>"
673
674 #. type: Plain text
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 msgid ""
678 "Leave the child in a waitable state; a later wait call can be used to again "
679 "retrieve the child status information."
680 msgstr ""
681 "Efterlad underprocessen i en ventende tilstand; et senere vente-kald kan "
682 "bruges til igen at hente underprocessens statusinformation."
683
684 #. type: Plain text
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 msgid ""
688 "Upon successful return, B<waitid>() fills in the following fields of the "
689 "I<siginfo_t> structure pointed to by I<infop>:"
690 msgstr ""
691 "Ved succesfuld returnering udfylder B<waitid>() de følgende felter i "
692 "strukturen I<siginfo_t> peget mod af I<infop>:"
693
694 #. type: TP
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "I<si_pid>"
699 msgstr "I<si_pid>"
700
701 #. type: Plain text
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 msgid "The process ID of the child."
705 msgstr "Proces-id for underprocessen."
706
707 #. type: TP
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid "I<si_uid>"
712 msgstr "I<si_uid>"
713
714 #. type: Plain text
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 msgid ""
718 "The real user ID of the child. (This field is not set on most other "
719 "implementations.)"
720 msgstr ""
721 "Det reelle bruger-id for underprocessen. (Dette felt er ikke angivet på de "
722 "fleste implementeriner)."
723
724 #. type: TP
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 #, no-wrap
728 msgid "I<si_signo>"
729 msgstr "I<si_signo>"
730
731 #. type: Plain text
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 msgid "Always set to B<SIGCHLD>."
735 msgstr "Angiv altdi som B<SIGCHLD>."
736
737 #. type: TP
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 #, no-wrap
741 msgid "I<si_status>"
742 msgstr "I<si_status>"
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "Either the exit status of the child, as given to B<_exit>(2) (or "
749 "B<exit>(3)), or the signal that caused the child to terminate, stop, or "
750 "continue. The I<si_code> field can be used to determine how to interpret "
751 "this field."
752 msgstr ""
753 "Enten afslutningsstatus for underprocessen, som angivet til B<_exit>(2) "
754 "(eller B<exit>(3)), eller signalet der medførte at underprocessen blev "
755 "afsluttet, stoppet eller fortsatte. Feltet I<si_code> kan bruges til at "
756 "bestemme hvordan dette felt skal fortolkes."
757
758 #. type: TP
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 #, no-wrap
762 msgid "I<si_code>"
763 msgstr "I<si_code>"
764
765 #. type: Plain text
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 msgid ""
769 "Set to one of: B<CLD_EXITED> (child called B<_exit>(2)); B<CLD_KILLED> "
770 "(child killed by signal); B<CLD_DUMPED> (child killed by signal, and dumped "
771 "core); B<CLD_STOPPED> (child stopped by signal); B<CLD_TRAPPED> (traced "
772 "child has trapped); or B<CLD_CONTINUED> (child continued by B<SIGCONT>)."
773 msgstr ""
774 "Angiv til en af: B<CLD_EXITED> (underproces kaldt B<_exit>(2)); "
775 "B<CLD_KILLED> (underproces dræbt af signal); B<CLD_DUMPED> (underproces "
776 "dræbt af signal, og dumpet kerne); B<CLD_STOPPED> (underproces stoppet af "
777 "signal); B<CLD_TRAPPED> (sporet underproces er fanget); eller "
778 "B<CLD_CONTINUED> (underproces forsat af B<SIGCONT>)."
779
780 #. type: Plain text
781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
783 msgid ""
784 "If B<WNOHANG> was specified in I<options> and there were no children in a "
785 "waitable state, then B<waitid>() returns 0 immediately and the state of the "
786 "I<siginfo_t> structure pointed to by I<infop> depends on the "
787 "implementation. To (portably) distinguish this case from that where a child "
788 "was in a waitable state, zero out the I<si_pid> field before the call and "
789 "check for a nonzero value in this field after the call returns."
790 msgstr ""
791 "Hvis B<WNOHANG> blev angivet i I<tilvalg> og der ingen underprocesser var i "
792 "en ventende tilstand, så returnerer B<waitid>() 0 øjeblikkeligt og "
793 "tilstanden for strukturen I<siginfo_t> pegende mod I<infop> afhænger af "
794 "implementeringen. For (flytbart) at skelne dette tilfælde fra hvor en "
795 "underproces var i en ventende tilstand, nulstil feltet I<si_pid> før kaldet "
796 "og tjek for en værdi forskellig fra nul i dettte felt efter kaldet "
797 "returnerer."
798
799 #. POSIX.1-2001 leaves this possibility unspecified; most
800 #. implementations (including Linux) zero out the structure
801 #. in this case, but at least one implementation (AIX 5.1)
802 #. does not -- MTK Nov 04
803 #. type: Plain text
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 msgid ""
807 "POSIX.1-2008 Technical Corrigendum 1 (2013) adds the requirement that when "
808 "B<WNOHANG> is specified in I<options> and there were no children in a "
809 "waitable state, then B<waitid>() should zero out the I<si_pid> and "
810 "I<si_signo> fields of the structure. On Linux and other implementations "
811 "that adhere to this requirement, it is not necessary to zero out the "
812 "I<si_pid> field before calling B<waitid>(). However, not all "
813 "implementations follow the POSIX.1 specification on this point."
814 msgstr ""
815 "POSIX.1-2008 Technical Corrigendum 1 (2013) tilføjer kravet at når "
816 "B<WNOHANG> er angivet i I<tilvalg> og der er ingen underproces i en ventende "
817 "tilstand, så bør B<waitid>() nulstille felterne I<si_pid> og I<si_signo> for "
818 "strukturen. På Linux og andre implementeringer, der overholder dette krav, "
819 "er det ikke nødvendigt at nulstille feltet I<si_pid> før B<waitid>() kaldes. "
820 "Alle implementeringer følger dog ikke POSIX.1-specifikationen på dette "
821 "tidspunkt."
822
823 #. type: SH
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 #, no-wrap
827 msgid "RETURN VALUE"
828 msgstr "RETURVÆRDI"
829
830 #. type: Plain text
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 msgid ""
834 "B<wait>(): on success, returns the process ID of the terminated child; on "
835 "failure, -1 is returned."
836 msgstr ""
837 "B<wait>(): ved succes, returneres proces-id'et for den afsluttede "
838 "underproces; ved fejl returneres -1."
839
840 #. type: Plain text
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 msgid ""
844 "B<waitpid>(): on success, returns the process ID of the child whose state "
845 "has changed; if B<WNOHANG> was specified and one or more child(ren) "
846 "specified by I<pid> exist, but have not yet changed state, then 0 is "
847 "returned. On failure, -1 is returned."
848 msgstr ""
849 "B<waitpid>(): ved succes returneres proces-id'et for underprocessen hvis "
850 "tilstand har ændret sig; hvis B<WNOHANG> blev angivet og en eller flere "
851 "underprocesser angivet af I<pid> findes, men endnu ikke har ændret tilstand, "
852 "så returneres 0. Ved fejl returneres -1."
853
854 #. FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
855 #. returns the PID of the child. Either this is a bug, or it is intended
856 #. behavior that needs to be documented. See my Jan 2009 LKML mail
857 #. "waitid() return value strangeness when infop is NULL".
858 #. type: Plain text
859 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
860 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
861 msgid ""
862 "B<waitid>(): returns 0 on success or if B<WNOHANG> was specified and no "
863 "child(ren) specified by I<id> has yet changed state; on failure, -1 is "
864 "returned."
865 msgstr ""
866 "B<waitid>(): returnerer 0 ved succes eller hvis B<WNOHANG> var angivet og "
867 "ingen underproces angivet af I<id> endnu ikke har ændret tilstand; ved fejl "
868 "returneres -1."
869
870 #. type: Plain text
871 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
872 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
873 msgid "On failure, each of these calls sets I<errno> to indicate the error."
874 msgstr "Ved fejl, angiver hvert af disse kald I<errno> for at indikere fejlen."
875
876 #. type: SH
877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
879 #, no-wrap
880 msgid "ERRORS"
881 msgstr "FEJL"
882
883 #. type: TP
884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
886 #, no-wrap
887 msgid "B<EAGAIN>"
888 msgstr "B<EAGAIN>"
889
890 #. type: Plain text
891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
893 msgid ""
894 "The PID file descriptor specified in I<id> is nonblocking and the process "
895 "that it refers to has not terminated."
896 msgstr ""
897 "PID-fildeskriptoren angivet i I<id> er ikkeblokerende og processen den "
898 "referer til er ikke afsluttet."
899
900 #. type: TP
901 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
902 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
903 #, no-wrap
904 msgid "B<ECHILD>"
905 msgstr "B<ECHILD>"
906
907 #. type: Plain text
908 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
909 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
910 msgid ""
911 "(for B<wait>()) The calling process does not have any unwaited-for children."
912 msgstr ""
913 "(for B<wait>()) Den kaldende proces har ingen ej ventet for underproces."
914
915 #. type: Plain text
916 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
917 #: opensuse-tumbleweed
918 msgid ""
919 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
920 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
921 "not a child of the calling process. (This can happen for one's own child if "
922 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux\\ "
923 "Notes> section about threads.)"
924 msgstr ""
925 "(for B<waitpid>() eller B<waitid>()) Processen angivet af I<pid> "
926 "(B<waitpid>()) eller I<idtype> og I<id> (B<waitid>()) findes ikke eller er "
927 "ikke en underproces af den kaldende proces. (Dette kan ske for ens egen "
928 "underproces hvis handlingen for B<SIGCHLD> er angivet til B<SIG_IGN>. Se "
929 "også afsnittet I<Linux Notes> om tråde)."
930
931 #. type: TP
932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
934 #, no-wrap
935 msgid "B<EINTR>"
936 msgstr "B<EINTR>"
937
938 #. type: Plain text
939 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
940 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
941 msgid ""
942 "B<WNOHANG> was not set and an unblocked signal or a B<SIGCHLD> was caught; "
943 "see B<signal>(7)."
944 msgstr ""
945 "B<WNOHANG> var ikke angivet og et ej blokeret signal eller en B<SIGCHLD> "
946 "blev opfanget; se B<signal>(7)."
947
948 #. type: TP
949 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
950 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
951 #, no-wrap
952 msgid "B<EINVAL>"
953 msgstr "B<EINVAL>"
954
955 #. type: Plain text
956 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
957 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
958 msgid "The I<options> argument was invalid."
959 msgstr "Argumentet I<tilvalg> var ugyldigt."
960
961 #. type: TP
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 #, no-wrap
965 msgid "B<ESRCH>"
966 msgstr "B<ESRCH>"
967
968 #. type: Plain text
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 msgid "(for B<wait>() or B<waitpid>()) I<pid> is equal to B<INT_MIN>."
972 msgstr "(for B<wait>() eller B<waitpid>()) svarer I<pid> til B<INT_MIN>."
973
974 #. type: SH
975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
977 #, no-wrap
978 msgid "VERSIONS"
979 msgstr "VERSIONER"
980
981 #. type: SS
982 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
983 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
984 #, no-wrap
985 msgid "C library/kernel differences"
986 msgstr "C-bibliotek/kerne-forskelle"
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 ""
992 "B<wait>() is actually a library function that (in glibc) is implemented as "
993 "a call to B<wait4>(2)."
994 msgstr ""
995 "B<wait>() er faktisk en biblioteksfunktion der (i glibc) er implementeret "
996 "som et kald til B<wait4>(2)."
997
998 #. e.g., i386 has the system call, but not x86-64
999 #. type: Plain text
1000 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1001 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1002 msgid ""
1003 "On some architectures, there is no B<waitpid>() system call; instead, this "
1004 "interface is implemented via a C library wrapper function that calls "
1005 "B<wait4>(2)."
1006 msgstr ""
1007 "På nogle arkitekturer er det intet B<waitpid>()-systemkald; i stedet for er "
1008 "denne grænseflade implementeret via en C-biblioteksomslagsfunktion, der "
1009 "kalder B<wait4>(2)."
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid ""
1015 "The raw B<waitid>() system call takes a fifth argument, of type I<struct "
1016 "rusage\\ *>. If this argument is non-NULL, then it is used to return "
1017 "resource usage information about the child, in the same manner as "
1018 "B<wait4>(2). See B<getrusage>(2) for details."
1019 msgstr ""
1020 "Det rå systemkald B<waitid>() anvender et femte argument, af typen I<struct "
1021 "rusage\\ *>. Hvis dette argument er forskellig fra NULL, så bruges det til "
1022 "at returnere information om ressourceforbrug for underprocessen, på samme "
1023 "måde som B<wait4>(2). Se B<getrusage>(2) for detaljer."
1024
1025 #. type: SH
1026 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1027 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1028 #, no-wrap
1029 msgid "STANDARDS"
1030 msgstr "STANDARDER"
1031
1032 #. type: Plain text
1033 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1034 #: opensuse-tumbleweed
1035 msgid "POSIX.1-2024."
1036 msgstr "POSIX.1-2024."
1037
1038 #. type: SH
1039 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1040 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1041 #, no-wrap
1042 msgid "HISTORY"
1043 msgstr "HISTORIK"
1044
1045 #. type: Plain text
1046 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1047 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1048 msgid "SVr4, 4.3BSD, POSIX.1-2001."
1049 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
1050
1051 #. type: SH
1052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1054 #, no-wrap
1055 msgid "NOTES"
1056 msgstr "NOTER"
1057
1058 #. type: Plain text
1059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1061 msgid ""
1062 "A child that terminates, but has not been waited for becomes a \"zombie\". "
1063 "The kernel maintains a minimal set of information about the zombie process "
1064 "(PID, termination status, resource usage information) in order to allow the "
1065 "parent to later perform a wait to obtain information about the child. As "
1066 "long as a zombie is not removed from the system via a wait, it will consume "
1067 "a slot in the kernel process table, and if this table fills, it will not be "
1068 "possible to create further processes. If a parent process terminates, then "
1069 "its \"zombie\" children (if any) are adopted by B<init>(1), (or by the "
1070 "nearest \"subreaper\" process as defined through the use of the B<prctl>(2) "
1071 "B<PR_SET_CHILD_SUBREAPER> operation); B<init>(1) automatically performs a "
1072 "wait to remove the zombies."
1073 msgstr ""
1074 "En underproces der afsluttes, men der ikke er blevet ventet på bliver en "
1075 "»zombie«. Kernen vedligeholder et minimum af information om zombieprocessen "
1076 "(PID, afslutningsstatus, information om ressourceforbrug) for at "
1077 "overprocessen senere kan udføre en wait for at få information om "
1078 "underprocessen. Så længe en zombie ikke fjernes fra systemet via en wait, så "
1079 "vil den bruge en plads i kerneprocestabellen og hvis denne tabel bliver "
1080 "fyldt, så vil der ikke længere kunne oprettes yderligere processer. Hvis en "
1081 "overproces afsluttes, så bliver dens (hvis nogen) »zombieprocesser« "
1082 "adopteret af B<init>(1), (eller af den nærmeste »subreaper«-proces som "
1083 "defineret via brugen af B<prctl>(2) B<PR_SET_CHILD_SUBREAPER>-operationen); "
1084 "B<init>(1) udfører automatisk en wait for at fjerne zombierne."
1085
1086 #. type: Plain text
1087 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1088 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1089 msgid ""
1090 "POSIX.1-2001 specifies that if the disposition of B<SIGCHLD> is set to "
1091 "B<SIG_IGN> or the B<SA_NOCLDWAIT> flag is set for B<SIGCHLD> (see "
1092 "B<sigaction>(2)), then children that terminate do not become zombies and a "
1093 "call to B<wait>() or B<waitpid>() will block until all children have "
1094 "terminated, and then fail with I<errno> set to B<ECHILD>. (The original "
1095 "POSIX standard left the behavior of setting B<SIGCHLD> to B<SIG_IGN> "
1096 "unspecified. Note that even though the default disposition of B<SIGCHLD> is "
1097 "\"ignore\", explicitly setting the disposition to B<SIG_IGN> results in "
1098 "different treatment of zombie process children.)"
1099 msgstr ""
1100 "POSIX.1-2001 angiver at hvis dispositionen af B<SIGCHLD> er angivet til "
1101 "B<SIG_IGN> eller flaget B<SA_NOCLDWAIT> er angivet for B<SIGCHLD> (se "
1102 "B<sigaction>(2)), så bliver underprocessen, der afsluttes, ikke en zombie og "
1103 "et kald til B<wait>() eller B<waitpid>() vil blokere indtil alle "
1104 "underprocesser er afsluttet, og så fejle med I<errno> angivet til B<ECHILD>. "
1105 "(Den oprindelige POSIX-standard efterlod opførelsen med at angive B<SIGCHLD> "
1106 "til B<SIG_IGN> uspecificeret. Bemærk at selvom standarddispositionen for "
1107 "B<SIGCHLD> er »ignore« (ignorer), så medfører eksplicit angivelse af "
1108 "dispositionen til B<SIG_IGN> forskellig behandling af zombieunderprocesser)."
1109
1110 #. type: Plain text
1111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1113 msgid ""
1114 "Linux 2.6 conforms to the POSIX requirements. However, Linux 2.4 (and "
1115 "earlier) does not: if a B<wait>() or B<waitpid>() call is made while "
1116 "B<SIGCHLD> is being ignored, the call behaves just as though B<SIGCHLD> were "
1117 "not being ignored, that is, the call blocks until the next child terminates "
1118 "and then returns the process ID and status of that child."
1119 msgstr ""
1120 "Linux 2.6 overholder POSIX-kravene. Linux 2.4 (og tidligere) gør dog ikke: "
1121 "hvis et B<wait>()- eller B<waitpid>()-kald laves mens B<SIGCHLD> bliver "
1122 "ignoreret, så opfører kaldet sig som at B<SIGCHLD> ikke blev ignoreret, det "
1123 "vil sige, kaldet blokeres indtil den næste underproces afsluttes og "
1124 "returnerer så proces-id'et og status for den underproces."
1125
1126 #. type: SS
1127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1129 #, no-wrap
1130 msgid "Linux notes"
1131 msgstr "Linux-noter"
1132
1133 #. type: Plain text
1134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1136 msgid ""
1137 "In the Linux kernel, a kernel-scheduled thread is not a distinct construct "
1138 "from a process. Instead, a thread is simply a process that is created using "
1139 "the Linux-unique B<clone>(2) system call; other routines such as the "
1140 "portable B<pthread_create>(3) call are implemented using B<clone>(2). "
1141 "Before Linux 2.4, a thread was just a special case of a process, and as a "
1142 "consequence one thread could not wait on the children of another thread, "
1143 "even when the latter belongs to the same thread group. However, POSIX "
1144 "prescribes such functionality, and since Linux 2.4 a thread can, and by "
1145 "default will, wait on children of other threads in the same thread group."
1146 msgstr ""
1147 "I Linuxkernen er en kerneplanlagt tråd ikke en distinkt konstruktion fra en "
1148 "proces. I stedet er en tråd bare en proces, der oprettes via det Linux-"
1149 "unikke systemkald B<clone>(2); andre rutiner såsom det flytbare kald "
1150 "B<pthread_create>(3) implementeres via B<clone>(2). Før Linux 2.4 var en "
1151 "tråd bare en speciel proces og som konsekvens kunne en tråd ikke vente på "
1152 "underprocessen i en anden tråd, selv om den sidstnævnte tilhører den samme "
1153 "trådgruppe. POSIX foreskriver dog sådan funktionalitet, og siden Linux 2.4 "
1154 "kan en tråd, og vil som standard, vente på underprocesser i andre tråde i "
1155 "den samme trådgruppe."
1156
1157 #. commit 91c4e8ea8f05916df0c8a6f383508ac7c9e10dba
1158 #. type: Plain text
1159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1161 msgid ""
1162 "The following Linux-specific I<options> are for use with children created "
1163 "using B<clone>(2); they can also, since Linux 4.7, be used with B<waitid>():"
1164 msgstr ""
1165 "De følgende Linux-specifikke I<tilvalg> er for brug med underproces oprettet "
1166 "via B<clone>(2); de kan også, siden Linux 4.7, bruges med B<waitid>():"
1167
1168 #. type: TP
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 #, no-wrap
1172 msgid "B<__WCLONE>"
1173 msgstr "B<__WCLONE>"
1174
1175 #. since 0.99pl10
1176 #. type: Plain text
1177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1179 msgid ""
1180 "Wait for \"clone\" children only. If omitted, then wait for \"non-clone\" "
1181 "children only. (A \"clone\" child is one which delivers no signal, or a "
1182 "signal other than B<SIGCHLD> to its parent upon termination.) This option "
1183 "is ignored if B<__WALL> is also specified."
1184 msgstr ""
1185 "Vent kun på »klon«-underproces. Hvis udeladt så vent kun på »ikke-klon«-"
1186 "underproces. (En »klon«-underproces er en der ikke leverer et signal, eller "
1187 "et signal udover B<SIGCHLD> til sin overproces ved afslutning). Dette "
1188 "tilvalg ignoreres hvis B<__WALL> også er angivet."
1189
1190 #. type: TP
1191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1193 #, no-wrap
1194 msgid "B<__WALL> (since Linux 2.4)"
1195 msgstr "B<__WALL> (siden Linux 2.4)"
1196
1197 #. since patch-2.3.48
1198 #. type: Plain text
1199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1201 msgid "Wait for all children, regardless of type (\"clone\" or \"non-clone\")."
1202 msgstr "Vent på alle underprocesser, uanset typen (»clone« eller »non-clone«)."
1203
1204 #. type: TP
1205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1207 #, no-wrap
1208 msgid "B<__WNOTHREAD> (since Linux 2.4)"
1209 msgstr "B<__WNOTHREAD> (siden Linux 2.4)"
1210
1211 #. since patch-2.4.0-test8
1212 #. type: Plain text
1213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1215 msgid ""
1216 "Do not wait for children of other threads in the same thread group. This "
1217 "was the default before Linux 2.4."
1218 msgstr ""
1219 "Vent ikke på underprocesser for andre tråde i den samme trådgruppe. Dette "
1220 "var standarden før Linux 2.4."
1221
1222 #. commit bf959931ddb88c4e4366e96dd22e68fa0db9527c
1223 #. prevents cases where an unreapable zombie is created if
1224 #. /sbin/init doesn't use __WALL.
1225 #. type: Plain text
1226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1228 msgid ""
1229 "Since Linux 4.7, the B<__WALL> flag is automatically implied if the child is "
1230 "being ptraced."
1231 msgstr ""
1232 "Siden Linux 4.7, antages flaget B<__WALL> automatisk hvis underprocessen "
1233 "bliver ptraced."
1234
1235 #. type: SH
1236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1238 #, no-wrap
1239 msgid "BUGS"
1240 msgstr "FEJL"
1241
1242 #. type: Plain text
1243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1245 msgid ""
1246 "According to POSIX.1-2008, an application calling B<waitid>() must ensure "
1247 "that I<infop> points to a I<siginfo_t> structure (i.e., that it is a non-"
1248 "null pointer). On Linux, if I<infop> is NULL, B<waitid>() succeeds, and "
1249 "returns the process ID of the waited-for child. Applications should avoid "
1250 "relying on this inconsistent, nonstandard, and unnecessary feature."
1251 msgstr ""
1252 "Jævnfør POSIX.1-2008 skal et program der kalder B<waitid>() sikre at "
1253 "I<infop> peger på en I<siginfo_t>-struktur (dvs. at det er tekstsøger "
1254 "forskellig fra nul). På Linux, hvis I<infop> er nul, så lykkes B<waitid>() "
1255 "og returnerer proces-id'et for den ventet på-underproces. Programmer bør "
1256 "undgå at afhænge af denne inkonsistens, uden for standarden og unødvendige "
1257 "funktion."
1258
1259 #. type: SH
1260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1262 #, no-wrap
1263 msgid "EXAMPLES"
1264 msgstr "EKSEMPLER"
1265
1266 #. fork.2 refers to this example program.
1267 #. type: Plain text
1268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1270 msgid ""
1271 "The following program demonstrates the use of B<fork>(2) and B<waitpid>(). "
1272 "The program creates a child process. If no command-line argument is "
1273 "supplied to the program, then the child suspends its execution using "
1274 "B<pause>(2), to allow the user to send signals to the child. Otherwise, if "
1275 "a command-line argument is supplied, then the child exits immediately, using "
1276 "the integer supplied on the command line as the exit status. The parent "
1277 "process executes a loop that monitors the child using B<waitpid>(), and uses "
1278 "the W*() macros described above to analyze the wait status value."
1279 msgstr ""
1280 "Det følgende program demonstrerer brugen af B<fork>(2) og B<waitpid>(). "
1281 "Programmet opretter en underproces. Hvis intet kommandolinjeargument leveres "
1282 "til programmet, så suspenderer underprocessen dens afvikling via "
1283 "B<pause>(2), for at tillade at brugeren kan sende signaler til "
1284 "underprocessen. Ellers, hvis et kommandolinjeargument anvendes, så afsluttes "
1285 "underprocessen øjeblikkeligt, via heltalet angivet på kommandolinjen som "
1286 "afslutningsstatus. Overprocessen afvikler en løkke, der overvåger "
1287 "underprocessen via B<waitpid>(), og bruger W*()-makroer beskrevet ovenfor "
1288 "til at analysere wait-statusværdien."
1289
1290 #. type: Plain text
1291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1293 msgid "The following shell session demonstrates the use of the program:"
1294 msgstr "Den følgende skalsession demonstrerer brugen af programmet:"
1295
1296 #. type: Plain text
1297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1299 #, no-wrap
1300 msgid ""
1301 "$B< ./a.out &>\n"
1302 "Child PID is 32360\n"
1303 "[1] 32359\n"
1304 "$B< kill -STOP 32360>\n"
1305 "stopped by signal 19\n"
1306 "$B< kill -CONT 32360>\n"
1307 "continued\n"
1308 "$B< kill -TERM 32360>\n"
1309 "killed by signal 15\n"
1310 "[1]+ Done ./a.out\n"
1311 "$\n"
1312 msgstr ""
1313 "$B< ./a.out &>\n"
1314 "Child PID is 32360\n"
1315 "[1] 32359\n"
1316 "$B< kill -STOP 32360>\n"
1317 "stopped by signal 19\n"
1318 "$B< kill -CONT 32360>\n"
1319 "continued\n"
1320 "$B< kill -TERM 32360>\n"
1321 "killed by signal 15\n"
1322 "[1]+ Done ./a.out\n"
1323 "$\n"
1324
1325 #. type: SS
1326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1328 #, no-wrap
1329 msgid "Program source"
1330 msgstr "Programkilde"
1331
1332 #. type: Plain text
1333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1335 #, no-wrap
1336 msgid ""
1337 "#include E<lt>stdint.hE<gt>\n"
1338 "#include E<lt>stdio.hE<gt>\n"
1339 "#include E<lt>stdlib.hE<gt>\n"
1340 "#include E<lt>sys/types.hE<gt>\n"
1341 "#include E<lt>sys/wait.hE<gt>\n"
1342 "#include E<lt>unistd.hE<gt>\n"
1343 "\\&\n"
1344 "int\n"
1345 "main(int argc, char *argv[])\n"
1346 "{\n"
1347 " int wstatus;\n"
1348 " pid_t cpid, w;\n"
1349 "\\&\n"
1350 " cpid = fork();\n"
1351 " if (cpid == -1) {\n"
1352 " perror(\"fork\");\n"
1353 " exit(EXIT_FAILURE);\n"
1354 " }\n"
1355 "\\&\n"
1356 " if (cpid == 0) { /* Code executed by child */\n"
1357 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1358 " if (argc == 1)\n"
1359 " pause(); /* Wait for signals */\n"
1360 " _exit(atoi(argv[1]));\n"
1361 "\\&\n"
1362 " } else { /* Code executed by parent */\n"
1363 " do {\n"
1364 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1365 " if (w == -1) {\n"
1366 " perror(\"waitpid\");\n"
1367 " exit(EXIT_FAILURE);\n"
1368 " }\n"
1369 "\\&\n"
1370 " if (WIFEXITED(wstatus)) {\n"
1371 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1372 " } else if (WIFSIGNALED(wstatus)) {\n"
1373 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1374 " } else if (WIFSTOPPED(wstatus)) {\n"
1375 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1376 " } else if (WIFCONTINUED(wstatus)) {\n"
1377 " printf(\"continued\\[rs]n\");\n"
1378 " }\n"
1379 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1380 " exit(EXIT_SUCCESS);\n"
1381 " }\n"
1382 "}\n"
1383 msgstr ""
1384 "#include E<lt>stdint.hE<gt>\n"
1385 "#include E<lt>stdio.hE<gt>\n"
1386 "#include E<lt>stdlib.hE<gt>\n"
1387 "#include E<lt>sys/types.hE<gt>\n"
1388 "#include E<lt>sys/wait.hE<gt>\n"
1389 "#include E<lt>unistd.hE<gt>\n"
1390 "\\&\n"
1391 "int\n"
1392 "main(int argc, char *argv[])\n"
1393 "{\n"
1394 " int wstatus;\n"
1395 " pid_t cpid, w;\n"
1396 "\\&\n"
1397 " cpid = fork();\n"
1398 " if (cpid == -1) {\n"
1399 " perror(\"fork\");\n"
1400 " exit(EXIT_FAILURE);\n"
1401 " }\n"
1402 "\\&\n"
1403 " if (cpid == 0) { /* Kode afviklet af underproces */\n"
1404 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1405 " if (argc == 1)\n"
1406 " pause(); /* Vent på signaler */\n"
1407 " _exit(atoi(argv[1]));\n"
1408 "\\&\n"
1409 " } else { /* Kode afviklet af overproces */\n"
1410 " do {\n"
1411 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1412 " if (w == -1) {\n"
1413 " perror(\"waitpid\");\n"
1414 " exit(EXIT_FAILURE);\n"
1415 " }\n"
1416 "\\&\n"
1417 " if (WIFEXITED(wstatus)) {\n"
1418 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1419 " } else if (WIFSIGNALED(wstatus)) {\n"
1420 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1421 " } else if (WIFSTOPPED(wstatus)) {\n"
1422 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1423 " } else if (WIFCONTINUED(wstatus)) {\n"
1424 " printf(\"continued\\[rs]n\");\n"
1425 " }\n"
1426 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1427 " exit(EXIT_SUCCESS);\n"
1428 " }\n"
1429 "}\n"
1430
1431 #. SRC END
1432 #. type: SH
1433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1435 #, no-wrap
1436 msgid "SEE ALSO"
1437 msgstr "SE OGSÅ"
1438
1439 #. type: Plain text
1440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1442 msgid ""
1443 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1444 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1445 "B<core>(5), B<credentials>(7), B<signal>(7)"
1446 msgstr ""
1447 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1448 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1449 "B<core>(5), B<credentials>(7), B<signal>(7)"
1450
1451 #. type: TH
1452 #: debian-trixie
1453 #, no-wrap
1454 msgid "2024-06-15"
1455 msgstr "15. juni 2024"
1456
1457 #. type: TH
1458 #: debian-trixie
1459 #, no-wrap
1460 msgid "Linux man-pages 6.9.1"
1461 msgstr "Linux man-pages 6.9.1"
1462
1463 #. type: Plain text
1464 #: debian-trixie
1465 msgid "Standard C library (I<libc>, I<-lc>)"
1466 msgstr "C-standardbibliotek (I<libc>, I<-lc>)"
1467
1468 #. type: Plain text
1469 #: debian-trixie
1470 #, no-wrap
1471 msgid ""
1472 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1473 " /* This is the glibc and POSIX interface; see\n"
1474 " NOTES for information on the raw system call. */\n"
1475 msgstr ""
1476 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1477 " /* Dette er glibc- og POSIX-grænsefladen; se\n"
1478 " NOTES for information om det rå systemkald. */\n"
1479
1480 #. type: TP
1481 #: debian-trixie fedora-44 fedora-rawhide
1482 #, no-wrap
1483 msgid "B<WCOREDUMP(>I<wstatus>B<)>"
1484 msgstr "B<WCOREDUMP(>I<wstatus>B<)>"
1485
1486 #. type: Plain text
1487 #: debian-trixie fedora-44 fedora-rawhide
1488 msgid ""
1489 "This macro is not specified in POSIX.1-2001 and is not available on some "
1490 "UNIX implementations (e.g., AIX, SunOS). Therefore, enclose its use inside "
1491 "I<#ifdef WCOREDUMP ... #endif>."
1492 msgstr ""
1493 "Denne makro er ikke angivet i POSIX.1-2001 og er derfor ikke tilgængelig på "
1494 "nogle UNIX-implementeringer (f.eks. AIX, SunOS). Omslut derfor dens brug i "
1495 "I<#ifdef WCOREDUMP ... #endif>."
1496
1497 #. type: TP
1498 #: debian-trixie fedora-44 fedora-rawhide
1499 #, no-wrap
1500 msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
1501 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1502
1503 #. type: TP
1504 #: debian-trixie fedora-44 fedora-rawhide
1505 #, no-wrap
1506 msgid "I<idtype> == B<P_PID>"
1507 msgstr "I<idtype> == B<P_PID>"
1508
1509 #. type: TP
1510 #: debian-trixie fedora-44 fedora-rawhide
1511 #, no-wrap
1512 msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
1513 msgstr "I<idtype> == B<P_PIDFD> (siden Linux 5.4)"
1514
1515 #. type: TP
1516 #: debian-trixie fedora-44 fedora-rawhide
1517 #, no-wrap
1518 msgid "I<idtype> == B<P_PGID>"
1519 msgstr "I<idtype> == B<P_PGID>"
1520
1521 #. type: TP
1522 #: debian-trixie fedora-44 fedora-rawhide
1523 #, no-wrap
1524 msgid "I<idtype> == B<P_ALL>"
1525 msgstr "I<idtype> == B<P_ALL>"
1526
1527 #. type: Plain text
1528 #: debian-trixie fedora-44 fedora-rawhide
1529 msgid ""
1530 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
1531 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
1532 "not a child of the calling process. (This can happen for one's own child if "
1533 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux Notes> "
1534 "section about threads.)"
1535 msgstr ""
1536 "(for B<waitpid>() eller B<waitid>()) Processen angivet af I<pid> "
1537 "(B<waitpid>()) eller I<idtype> og I<id> (B<waitid>()) findes ikke eller er "
1538 "ikke en underproces af den kaldende proces. (Dette kan ske for ens egen "
1539 "underproces hvis handlingen for B<SIGCHLD> er angivet til B<SIG_IGN>. Se "
1540 "også afsnittet I<Linux Notes> om tråde)."
1541
1542 #. type: Plain text
1543 #: debian-trixie fedora-44 fedora-rawhide
1544 msgid "POSIX.1-2008."
1545 msgstr "POSIX.1-2008."
1546
1547 #. type: TH
1548 #: fedora-44 fedora-rawhide
1549 #, no-wrap
1550 msgid "2024-07-23"
1551 msgstr "23. juli 2024"
1552
1553 #. type: TH
1554 #: fedora-44 fedora-rawhide
1555 #, no-wrap
1556 msgid "Linux man-pages 6.13"
1557 msgstr "Linux man-pages 6.13"
1558
1559 #. type: Plain text
1560 #: fedora-44 fedora-rawhide
1561 #, no-wrap
1562 msgid ""
1563 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1564 " /* This is the glibc and POSIX interface; see\n"
1565 " VERSIONS for information on the raw system call. */\n"
1566 msgstr ""
1567 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1568 " /* Dette er glibc- og POSIX-grænsefladen; se\n"
1569 " VERSIONS for information om det rå systemkald. */\n"
1570
1571 #. type: TH
1572 #: mageia-cauldron
1573 #, no-wrap
1574 msgid "Linux man-pages 6.17"
1575 msgstr "Linux man-pages 6.17"
1576
1577 #. type: TH
1578 #: opensuse-leap-16-1 opensuse-tumbleweed
1579 #, no-wrap
1580 msgid "Linux man-pages (unreleased)"
1581 msgstr "Linux man-pages (ej udgivet)"