| 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 11:22+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 "vfork" |
| 23 |
msgstr "vfork" |
| 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 "vfork - create a child process and block parent" |
| 49 |
msgstr "vfork - opret en underproces og bloker overproces" |
| 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>unistd.hE<gt>>\n" |
| 76 |
msgstr "B<#include E<lt>unistd.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 "B<pid_t vfork(void);>\n" |
| 83 |
msgstr "B<pid_t vfork(void);>\n" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
msgid "" |
| 89 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 90 |
msgstr "" |
| 91 |
"Feature Test Macro Requirements for glibc (se B<feature_test_macros>(7)):" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
msgid "B<vfork>():" |
| 97 |
msgstr "B<vfork>():" |
| 98 |
|
| 99 |
#. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED |
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, no-wrap |
| 104 |
msgid "" |
| 105 |
" Since glibc 2.12:\n" |
| 106 |
" (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n" |
| 107 |
" || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n" |
| 108 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 109 |
" Before glibc 2.12:\n" |
| 110 |
" _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n" |
| 111 |
msgstr "" |
| 112 |
" Siden glibc 2.12:\n" |
| 113 |
" (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n" |
| 114 |
" || /* Siden 2.19: */ _DEFAULT_SOURCE\n" |
| 115 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 116 |
" Før glibc 2.12:\n" |
| 117 |
" _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n" |
| 118 |
|
| 119 |
#. type: SH |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
#, no-wrap |
| 123 |
msgid "DESCRIPTION" |
| 124 |
msgstr "BESKRIVELSE" |
| 125 |
|
| 126 |
#. type: SS |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
#, no-wrap |
| 130 |
msgid "Standard description" |
| 131 |
msgstr "Standardbeskrivelse" |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"(From POSIX.1) The B<vfork>() function has the same effect as B<fork>(2), " |
| 138 |
"except that the behavior is undefined if the process created by B<vfork>() " |
| 139 |
"either modifies any data other than a variable of type I<pid_t> used to " |
| 140 |
"store the return value from B<vfork>(), or returns from the function in " |
| 141 |
"which B<vfork>() was called, or calls any other function before " |
| 142 |
"successfully calling B<_exit>(2) or one of the B<exec>(3) family of " |
| 143 |
"functions." |
| 144 |
msgstr "" |
| 145 |
"(Fra POSIX.1) har funktionen B<vfork>() den samme effekt som B<fork>(2), med " |
| 146 |
"den undtagelse at opførelsen ikke er defineret hvis processen oprettet af " |
| 147 |
"B<vfork>() enten ændrer data udover en variabel af typen I<pid_t> brugt til " |
| 148 |
"at lagre returværdien fra B<vfork>(), eller returnerer fra funktionen hvori " |
| 149 |
"B<vfork>() blev kaldt eller kalder en anden funktion før B<_exit>(2) kaldes " |
| 150 |
"med succes eller en af B<exec>(3)-funktionsfamilien." |
| 151 |
|
| 152 |
#. type: SS |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "Linux description" |
| 157 |
msgstr "Linuxbeskrivelse" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"B<vfork>(), just like B<fork>(2), creates a child process of the calling " |
| 164 |
"process. For details and return value and errors, see B<fork>(2)." |
| 165 |
msgstr "" |
| 166 |
"B<vfork>(), ligesom B<fork>(2), opretter en underproces af den kaldende " |
| 167 |
"proces. For detaljer og returværdi og fejl, se B<fork>(2)." |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "" |
| 173 |
"B<vfork>() is a special case of B<clone>(2). It is used to create new " |
| 174 |
"processes without copying the page tables of the parent process. It may be " |
| 175 |
"useful in performance-sensitive applications where a child is created which " |
| 176 |
"then immediately issues an B<execve>(2)." |
| 177 |
msgstr "" |
| 178 |
"B<vfork>() er et specielt tilfælde af B<clone>(2). Bruges til at oprette nye " |
| 179 |
"processer uden at kopiere sidetabellen for overprocessen. Kan være nyttig i " |
| 180 |
"ydelsessensitive programmer, hvor en underproces er opretet, der " |
| 181 |
"øjeblikkeligt udsteder en B<execve>(2)." |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"B<vfork>() differs from B<fork>(2) in that the calling thread is suspended " |
| 188 |
"until the child terminates (either normally, by calling B<_exit>(2), or " |
| 189 |
"abnormally, after delivery of a fatal signal), or it makes a call to " |
| 190 |
"B<execve>(2). Until that point, the child shares all memory with its " |
| 191 |
"parent, including the stack. The child must not return from the current " |
| 192 |
"function or call B<exit>(3) (which would have the effect of calling exit " |
| 193 |
"handlers established by the parent process and flushing the parent's " |
| 194 |
"B<stdio>(3) buffers), but may call B<_exit>(2)." |
| 195 |
msgstr "" |
| 196 |
"B<vfork>() er forskellig fra B<fork>(2) ved at den kaldende tråd suspenderes " |
| 197 |
"indtil underprocessen afsluttes (enten normalt, ved at kalde B<_exit>(2), " |
| 198 |
"eller unormalt, efter levering af et fatalt signal), eller den laver et kald " |
| 199 |
"til B<execve>(2). Indtil det punkt deler underprocessen al hukommelse med " |
| 200 |
"sin overproces, inklusive stakken. Underprocessen må ikke returnere fra den " |
| 201 |
"nuværende funktion eller kalde B<exit>(3) (hvilket ville have den effekt at " |
| 202 |
"kalde afslutningshåndteringer etableret af overprocessen og tømme " |
| 203 |
"overprocessens B<stdio>(3)-mellemlagre, men må kalde B<_exit>(2)." |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
msgid "" |
| 209 |
"As with B<fork>(2), the child process created by B<vfork>() inherits copies " |
| 210 |
"of various of the caller's process attributes (e.g., file descriptors, " |
| 211 |
"signal dispositions, and current working directory); the B<vfork>() call " |
| 212 |
"differs only in the treatment of the virtual address space, as described " |
| 213 |
"above." |
| 214 |
msgstr "" |
| 215 |
"Som med B<fork>(2), så arver underprocessen oprettet af B<vfork>() kopier af " |
| 216 |
"forskellige af kalderens procesattributter (f.eks. fildeskriptorer, " |
| 217 |
"signaldispositioner og nuværende arbejdsmappe); Kaldet B<vfork>() er kun " |
| 218 |
"anderledes i behandlingen af det virtuelle adresserum, som beskrevet ovenfor." |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"Signals sent to the parent arrive after the child releases the parent's " |
| 225 |
"memory (i.e., after the child terminates or calls B<execve>(2))." |
| 226 |
msgstr "" |
| 227 |
"Signaler sendt til overprocessen ankommer efter at underprocessen frigiver " |
| 228 |
"overprocessens hukommelse (dvs. efter at underprocessen afslutter eller " |
| 229 |
"kalder B<execve>(2))." |
| 230 |
|
| 231 |
#. type: SS |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
#, no-wrap |
| 235 |
msgid "Historic description" |
| 236 |
msgstr "Historisk beskrivelse" |
| 237 |
|
| 238 |
#. type: Plain text |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
msgid "" |
| 242 |
"Under Linux, B<fork>(2) is implemented using copy-on-write pages, so the " |
| 243 |
"only penalty incurred by B<fork>(2) is the time and memory required to " |
| 244 |
"duplicate the parent's page tables, and to create a unique task structure " |
| 245 |
"for the child. However, in the bad old days a B<fork>(2) would require " |
| 246 |
"making a complete copy of the caller's data space, often needlessly, since " |
| 247 |
"usually immediately afterward an B<exec>(3) is done. Thus, for greater " |
| 248 |
"efficiency, BSD introduced the B<vfork>() system call, which did not fully " |
| 249 |
"copy the address space of the parent process, but borrowed the parent's " |
| 250 |
"memory and thread of control until a call to B<execve>(2) or an exit " |
| 251 |
"occurred. The parent process was suspended while the child was using its " |
| 252 |
"resources. The use of B<vfork>() was tricky: for example, not modifying " |
| 253 |
"data in the parent process depended on knowing which variables were held in " |
| 254 |
"a register." |
| 255 |
msgstr "" |
| 256 |
"Under Linux er B<fork>(2) implementeret via copy-on-write-sider, så den " |
| 257 |
"eneste straf for B<fork>(2) er tid og hukommelse krævet for at dublikere " |
| 258 |
"overprocessens sidetabeller, og oprette en unik opgavestruktur for " |
| 259 |
"underprocessen. I de dårlige gamle dage ville B<fork>(2) ofte kræve en fuld " |
| 260 |
"kopi af kalderens datarum, ofte unødvendigt, da der normalt umiddelbart " |
| 261 |
"efter udføres en B<exec>(3). For større effektivitet introducerede BSD " |
| 262 |
"systemkaldet B<vfork>(), der ikke kopierer adresserummet for overprocessen " |
| 263 |
"fuldt ud, men låner overprocessens hukommelse og kontroltråd indtil et kald " |
| 264 |
"til B<execve>(2) eller en afslut opstod. Overprocessen blev suspenderet mens " |
| 265 |
"underprocessen brugte sine ressourcer. Brug af B<vfork>() var vanskelig: for " |
| 266 |
"eksempel gjorde det, at man ikke ændrede data i overprocessen, at man skulle " |
| 267 |
"kende til hvilke variabler, der var i et register." |
| 268 |
|
| 269 |
#. type: SH |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
#, no-wrap |
| 273 |
msgid "VERSIONS" |
| 274 |
msgstr "VERSIONER" |
| 275 |
|
| 276 |
#. In AIXv3.1 vfork is equivalent to fork. |
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "" |
| 281 |
"The requirements put on B<vfork>() by the standards are weaker than those " |
| 282 |
"put on B<fork>(2), so an implementation where the two are synonymous is " |
| 283 |
"compliant. In particular, the programmer cannot rely on the parent " |
| 284 |
"remaining blocked until the child either terminates or calls B<execve>(2), " |
| 285 |
"and cannot rely on any specific behavior with respect to shared memory." |
| 286 |
msgstr "" |
| 287 |
"Kravene placeret på B<vfork>() af standarderne er svagere end dem placeret " |
| 288 |
"på B<fork>(2), så en implementering hvor de to er synonyme er kompatibel. " |
| 289 |
"Især kan programmøren ikke afhænge af at overprocessen forbliver blokeret " |
| 290 |
"indtil underprocessen enten afsluttes eller kalder B<execve>(2), og kan ikke " |
| 291 |
"afhænge af en specifik opførelse med respekt for delt hukommelse." |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
msgid "" |
| 297 |
"Some consider the semantics of B<vfork>() to be an architectural blemish, " |
| 298 |
"and the 4.2BSD man page stated: \\[lq]This system call will be eliminated " |
| 299 |
"when proper system sharing mechanisms are implemented. Users should not " |
| 300 |
"depend on the memory sharing semantics of I<vfork> as it will, in that case, " |
| 301 |
"be made synonymous to I<fork>.\\[rq] However, even though modern memory " |
| 302 |
"management hardware has decreased the performance difference between " |
| 303 |
"B<fork>(2) and B<vfork>(), there are various reasons why Linux and other " |
| 304 |
"systems have retained B<vfork>():" |
| 305 |
msgstr "" |
| 306 |
"Nogle anser semantikken for B<vfork>() at være en arkitekturmæssig skamplet, " |
| 307 |
"og 4.2BSD-manualsiden sagde: \\[lq]Dette systemkald vil blive elimineret når " |
| 308 |
"korrekte systemdelingsmekanismer er blevet implementeret. Brugere skal ikke " |
| 309 |
"afhænge af hukommelsesdelingssemantikken for I<vfork> da den vil, i det " |
| 310 |
"tilfælde være synonym med I<fork>.\\[rq] Imidlertid, selv om moderne udstyr " |
| 311 |
"til hukommelseshåndtering er formindsket ydelsesforskellene mellem " |
| 312 |
"B<fork>(2) og B<vfork>(), er der forskellige årsager til hvorfor Linux og " |
| 313 |
"andre systemer har bevaret B<vfork>():" |
| 314 |
|
| 315 |
#. type: IP |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "\\[bu]" |
| 320 |
msgstr "\\[bu]" |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
msgid "" |
| 326 |
"Some performance-critical applications require the small performance " |
| 327 |
"advantage conferred by B<vfork>()." |
| 328 |
msgstr "" |
| 329 |
"Nogle ydelseskritiske programmer kræver den lille ydelsesfordel tildelt af " |
| 330 |
"B<vfork>()." |
| 331 |
|
| 332 |
#. http://stackoverflow.com/questions/4259629/what-is-the-difference-between-fork-and-vfork |
| 333 |
#. http://developers.sun.com/solaris/articles/subprocess/subprocess.html |
| 334 |
#. http://mailman.uclinux.org/pipermail/uclinux-dev/2009-April/000684.html |
| 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 |
"B<vfork>() can be implemented on systems that lack a memory-management unit " |
| 340 |
"(MMU), but B<fork>(2) can't be implemented on such systems. (POSIX.1-2008 " |
| 341 |
"removed B<vfork>() from the standard; the POSIX rationale for the " |
| 342 |
"B<posix_spawn>(3) function notes that that function, which provides " |
| 343 |
"functionality equivalent to B<fork>(2)+ B<exec>(3), is designed to be " |
| 344 |
"implementable on systems that lack an MMU.)" |
| 345 |
msgstr "" |
| 346 |
"B<vfork>() kan implementeres på systemer, der mangler en " |
| 347 |
"hukommelseshåndteringsenhed (MMU), men B<fork>(2) kan ikke blive " |
| 348 |
"implementeret på sådanne systemer. (POSIX.1-2008 fjernede B<vfork>() fra " |
| 349 |
"standarden; POSIX-rationalet for funktionen B<posix_spawn>(3) bemærker, at " |
| 350 |
"den funktion, der tilbyder funktionalitet svarende til B<fork>(2)+ " |
| 351 |
"B<exec>(3), er designet til at kunne implementeres på systemer, der mangler " |
| 352 |
"en MMU)." |
| 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 "" |
| 358 |
"On systems where memory is constrained, B<vfork>() avoids the need to " |
| 359 |
"temporarily commit memory (see the description of I</proc/sys/vm/" |
| 360 |
"overcommit_memory> in B<proc>(5)) in order to execute a new program. (This " |
| 361 |
"can be especially beneficial where a large parent process wishes to execute " |
| 362 |
"a small helper program in a child process.) By contrast, using B<fork>(2) " |
| 363 |
"in this scenario requires either committing an amount of memory equal to the " |
| 364 |
"size of the parent process (if strict overcommitting is in force) or " |
| 365 |
"overcommitting memory with the risk that a process is terminated by the out-" |
| 366 |
"of-memory (OOM) killer." |
| 367 |
msgstr "" |
| 368 |
"På systemer hvor hukommelse er begrænset undgår B<vfork>() behovet for " |
| 369 |
"midlertidigt at tildele hukommelse (se beskrivelsen af I</proc/sys/vm/" |
| 370 |
"overcommit_memory> i B<proc>(5)) for at kunne afvikle et nyt program. (Dette " |
| 371 |
"kan være specielt gavnligt hvor en stor overproces ønsker at afvikle et " |
| 372 |
"lille hjælpeprogram i en underproces). Som kontrast, brug af B<fork>(2) i " |
| 373 |
"dette scenarie kræver enten indsendelse af en stor mængde hukommelse " |
| 374 |
"svarende til størrelsen af overprocessen (hvis streng overforpligtelse er " |
| 375 |
"tvunget) eller overbelastning af hukommelse med risiko for at en proces " |
| 376 |
"bliver afsluttet af out-of-memory-dræberen (OOM)." |
| 377 |
|
| 378 |
#. type: SS |
| 379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 381 |
#, no-wrap |
| 382 |
msgid "Linux notes" |
| 383 |
msgstr "Linux-noter" |
| 384 |
|
| 385 |
#. type: Plain text |
| 386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
msgid "" |
| 389 |
"Fork handlers established using B<pthread_atfork>(3) are not called when a " |
| 390 |
"multithreaded program employing the NPTL threading library calls " |
| 391 |
"B<vfork>(). Fork handlers are called in this case in a program using the " |
| 392 |
"LinuxThreads threading library. (See B<pthreads>(7) for a description of " |
| 393 |
"Linux threading libraries.)" |
| 394 |
msgstr "" |
| 395 |
"Forgreningshåndteirnger etableret under B<pthread_atfork>(3) kaldes ikke, " |
| 396 |
"når et flertrådet program anvender NPTL-trådbibliotekskaldet B<vfork>(). " |
| 397 |
"Forgreningshåndteringer kaldes i dette tilfælde i et program via " |
| 398 |
"LinuxThreads-trådbiblioteket. (Se B<pthreads>(7) for en beskrivelse af Linux-" |
| 399 |
"trådbiblioteker)." |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "" |
| 405 |
"A call to B<vfork>() is equivalent to calling B<clone>(2) with I<flags> " |
| 406 |
"specified as:" |
| 407 |
msgstr "" |
| 408 |
"Et kald til B<vfork>() svarer til at kalde B<clone>(2) med I<flag> " |
| 409 |
"specificeret som:" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
#, no-wrap |
| 415 |
msgid " CLONE_VM | CLONE_VFORK | SIGCHLD\n" |
| 416 |
msgstr " CLONE_VM | CLONE_VFORK | SIGCHLD\n" |
| 417 |
|
| 418 |
#. type: SH |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
#, no-wrap |
| 422 |
msgid "STANDARDS" |
| 423 |
msgstr "STANDARDER" |
| 424 |
|
| 425 |
#. type: Plain text |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
msgid "None." |
| 429 |
msgstr "Ingen." |
| 430 |
|
| 431 |
#. type: SH |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
#, no-wrap |
| 435 |
msgid "HISTORY" |
| 436 |
msgstr "HISTORIK" |
| 437 |
|
| 438 |
#. type: Plain text |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
msgid "" |
| 442 |
"4.3BSD; POSIX.1-2001 (but marked OBSOLETE). POSIX.1-2008 removes the " |
| 443 |
"specification of B<vfork>()." |
| 444 |
msgstr "" |
| 445 |
"4.3BSD; POSIX.1-2001 (men markeret FORÆLDET). POSIX.1-2008 fjerner " |
| 446 |
"specifikationen af B<vfork>()." |
| 447 |
|
| 448 |
#. In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still |
| 449 |
#. present, but definitely on its way out'. |
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 452 |
#: opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"The B<vfork>() system call appeared in 3.0BSD. In 4.4BSD it was made " |
| 455 |
"synonymous to B<fork>(2) but NetBSD introduced it again; see E<.UR http:" |
| 456 |
"\\://www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> In " |
| 457 |
"Linux, it has been equivalent to B<fork>(2) until Linux 2.2.0-pre6 or so. " |
| 458 |
"Since Linux 2.2.0-pre9 (on i386, somewhat later on other architectures) it " |
| 459 |
"is an independent system call. Support was added in glibc 2.0.112." |
| 460 |
msgstr "" |
| 461 |
"Systemkaldet B<vfork>() dukkede op i 3.0BSD. I 4.4BSD blev det gjort " |
| 462 |
"synonymt med B<fork>(2), men NetBSD introducerede det igen; se E<.UR http:" |
| 463 |
"\\://www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> I " |
| 464 |
"Linux har det svaret til B<fork>(2) indtil Linux 2.2.0-pre6 eller " |
| 465 |
"deromkring. Siden Linux 2.2.0-pre9 (på i386, lidt senere på andre " |
| 466 |
"arkitekturer) er det et uafhængigt systemkald. Understøttelse blev tilføjet " |
| 467 |
"i glibc 2.0.112." |
| 468 |
|
| 469 |
#. type: SH |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
#, no-wrap |
| 473 |
msgid "CAVEATS" |
| 474 |
msgstr "FORBEHOLD" |
| 475 |
|
| 476 |
#. type: Plain text |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
msgid "" |
| 480 |
"The child process should take care not to modify the memory in unintended " |
| 481 |
"ways, since such changes will be seen by the parent process once the child " |
| 482 |
"terminates or executes another program. In this regard, signal handlers can " |
| 483 |
"be especially problematic: if a signal handler that is invoked in the child " |
| 484 |
"of B<vfork>() changes memory, those changes may result in an inconsistent " |
| 485 |
"process state from the perspective of the parent process (e.g., memory " |
| 486 |
"changes would be visible in the parent, but changes to the state of open " |
| 487 |
"file descriptors would not be visible)." |
| 488 |
msgstr "" |
| 489 |
"Underprocessen bør være omhyggelig med ikke at ændre hukommelsen på uønskede " |
| 490 |
"måder, da sådanne ændringer vil blive sendt til overprocessen, når " |
| 491 |
"underprocessen afsluttes eller afvikler et andet program. I disse tilfælde " |
| 492 |
"kan signalhåndteringer være specielt problematiske: hvis en signalhåndtering " |
| 493 |
"der igangsættes i underprocessen for B<vfork>() ændrer hukommelsen, kan " |
| 494 |
"disse ændringer medføre en inkonsistent procestilstand fra overprocessens " |
| 495 |
"perspektiv (f.eks. hukommelsesændringer vil være synlige i overprocessen, " |
| 496 |
"men ændringer til tilstanden for åbne fildeskriptorer vil ikke være synlige." |
| 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 |
"When B<vfork>() is called in a multithreaded process, only the calling " |
| 503 |
"thread is suspended until the child terminates or executes a new program. " |
| 504 |
"This means that the child is sharing an address space with other running " |
| 505 |
"code. This can be dangerous if another thread in the parent process changes " |
| 506 |
"credentials (using B<setuid>(2) or similar), since there are now two " |
| 507 |
"processes with different privilege levels running in the same address " |
| 508 |
"space. As an example of the dangers, suppose that a multithreaded program " |
| 509 |
"running as root creates a child using B<vfork>(). After the B<vfork>(), a " |
| 510 |
"thread in the parent process drops the process to an unprivileged user in " |
| 511 |
"order to run some untrusted code (e.g., perhaps via plug-in opened with " |
| 512 |
"B<dlopen>(3)). In this case, attacks are possible where the parent process " |
| 513 |
"uses B<mmap>(2) to map in code that will be executed by the privileged " |
| 514 |
"child process." |
| 515 |
msgstr "" |
| 516 |
"Når B<vfork>() kaldes i en flertrådet proces, så suspenderes kun den " |
| 517 |
"kaldende tråd indtil underprocessen afsluttes eller afvikler et nyt program. " |
| 518 |
"Dette betyder at underprocessen deler et adresesrum med anden afviklende " |
| 519 |
"kode. Dette kan være farligt hvis en anden tråd i overprocessen ændrer " |
| 520 |
"akkreditiver (via B<setuid>(2) eller lignende), da der nu er to processer " |
| 521 |
"med forskellige privilegieniveauer kørende i det samme adresserum. Som et " |
| 522 |
"eksempel på farerne, antag at et flertrådet program, der afvikles som " |
| 523 |
"administrator opretter en underproces via B<vfork>(). Efter B<vfork>(), " |
| 524 |
"smider en tråd i overprocessen processen til en uprivilegeret bruger for at " |
| 525 |
"afvikle noget utroværdigt kode (f.eks. måske via udvidelsesmodul åbnet med " |
| 526 |
"B<dlopen>(3)). I dette tilfælde er angreb muligt hvor overprocessen bruger " |
| 527 |
"B<mmap>(2) til at indsætte kode, der vil blive afviklet af den privilegerede " |
| 528 |
"underproces." |
| 529 |
|
| 530 |
#. type: SH |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "BUGS" |
| 535 |
msgstr "FEJL" |
| 536 |
|
| 537 |
# |
| 538 |
#. As far as I can tell, the following is not true in Linux 2.6.19: |
| 539 |
#. Currently (Linux 2.3.25), |
| 540 |
#. .BR strace (1) |
| 541 |
#. cannot follow |
| 542 |
#. .BR vfork () |
| 543 |
#. and requires a kernel patch. |
| 544 |
#. type: Plain text |
| 545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
msgid "" |
| 548 |
"Details of the signal handling are obscure and differ between systems. The " |
| 549 |
"BSD man page states: \"To avoid a possible deadlock situation, processes " |
| 550 |
"that are children in the middle of a B<vfork>() are never sent B<SIGTTOU> " |
| 551 |
"or B<SIGTTIN> signals; rather, output or I<ioctl>s are allowed and input " |
| 552 |
"attempts result in an end-of-file indication.\"" |
| 553 |
msgstr "" |
| 554 |
"Detaljer for signalhåndteringen er obskure og forskellig mellem systemer. " |
| 555 |
"BSD-manualsiden siger: »For at undgå et muligt dødvande, så sendes " |
| 556 |
"processer, der er underprocesser i midten af en B<vfork>() aldrig til " |
| 557 |
"B<SIGTTOU>- eller B<SIGTTIN>-signaler; resultat eller I<ioctl>'er er derimod " |
| 558 |
"tilladt og inddataforsøg medfører en end-of-line-indikation«." |
| 559 |
|
| 560 |
#. type: SH |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
#, no-wrap |
| 564 |
msgid "SEE ALSO" |
| 565 |
msgstr "SE OGSÅ" |
| 566 |
|
| 567 |
#. type: Plain text |
| 568 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 569 |
#: opensuse-tumbleweed |
| 570 |
msgid "" |
| 571 |
"B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<_Fork>(3), " |
| 572 |
"B<unshare>(2), B<wait>(2)" |
| 573 |
msgstr "" |
| 574 |
"B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<_Fork>(3), " |
| 575 |
"B<unshare>(2), B<wait>(2)" |
| 576 |
|
| 577 |
#. type: TH |
| 578 |
#: debian-trixie |
| 579 |
#, no-wrap |
| 580 |
msgid "2024-05-02" |
| 581 |
msgstr "2. maj 2024" |
| 582 |
|
| 583 |
#. type: TH |
| 584 |
#: debian-trixie |
| 585 |
#, no-wrap |
| 586 |
msgid "Linux man-pages 6.9.1" |
| 587 |
msgstr "Linux man-pages 6.9.1" |
| 588 |
|
| 589 |
#. type: Plain text |
| 590 |
#: debian-trixie |
| 591 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 592 |
msgstr "C-standardbibliotek (I<libc>, I<-lc>)" |
| 593 |
|
| 594 |
#. In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still |
| 595 |
#. present, but definitely on its way out'. |
| 596 |
#. type: Plain text |
| 597 |
#: debian-trixie fedora-44 fedora-rawhide |
| 598 |
msgid "" |
| 599 |
"The B<vfork>() system call appeared in 3.0BSD. In 4.4BSD it was made " |
| 600 |
"synonymous to B<fork>(2) but NetBSD introduced it again; see E<.UR http://" |
| 601 |
"www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> In Linux, " |
| 602 |
"it has been equivalent to B<fork>(2) until Linux 2.2.0-pre6 or so. Since " |
| 603 |
"Linux 2.2.0-pre9 (on i386, somewhat later on other architectures) it is an " |
| 604 |
"independent system call. Support was added in glibc 2.0.112." |
| 605 |
msgstr "" |
| 606 |
"Systemkaldet B<vfork>() dukkede op i 3.0BSD. I 4.4BSD blev det gjort " |
| 607 |
"synonymt med B<fork>(2), men NetBSD introducerede det igen; se E<.UR http://" |
| 608 |
"www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> I Linux, " |
| 609 |
"har det svaret til B<fork>(2) indtil Linux 2.2.0-pre6 eller deromkring. " |
| 610 |
"Siden Linux 2.2.0-pre9 (på i386, lidt senere på andre arkitekturer) er det " |
| 611 |
"et uafhængigt systemkald. Understøttelse blev tilføjet i glibc 2.0.112." |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: debian-trixie fedora-44 fedora-rawhide |
| 615 |
msgid "" |
| 616 |
"B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<unshare>(2), B<wait>(2)" |
| 617 |
msgstr "" |
| 618 |
"B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<unshare>(2), B<wait>(2)" |
| 619 |
|
| 620 |
#. type: TH |
| 621 |
#: fedora-44 fedora-rawhide |
| 622 |
#, no-wrap |
| 623 |
msgid "2024-07-23" |
| 624 |
msgstr "23. juli 2024" |
| 625 |
|
| 626 |
#. type: TH |
| 627 |
#: fedora-44 fedora-rawhide |
| 628 |
#, no-wrap |
| 629 |
msgid "Linux man-pages 6.13" |
| 630 |
msgstr "Linux man-pages 6.13" |
| 631 |
|
| 632 |
#. type: TH |
| 633 |
#: mageia-cauldron |
| 634 |
#, no-wrap |
| 635 |
msgid "Linux man-pages 6.17" |
| 636 |
msgstr "Linux man-pages 6.17" |
| 637 |
|
| 638 |
#. type: TH |
| 639 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
#, no-wrap |
| 641 |
msgid "Linux man-pages (unreleased)" |
| 642 |
msgstr "Linux man-pages (ej udgivet)" |