| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:24+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "fork" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "fork - create a child process" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>unistd.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<pid_t fork(void);>\n" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: SH |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "DESCRIPTION" |
| 91 |
msgstr "" |
| 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 "" |
| 97 |
"B<fork>() creates a new process by duplicating the calling process. The " |
| 98 |
"new process is referred to as the I<child> process. The calling process is " |
| 99 |
"referred to as the I<parent> process." |
| 100 |
msgstr "" |
| 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 |
"The child process and the parent process run in separate memory spaces. At " |
| 107 |
"the time of B<fork>() both memory spaces have the same content. Memory " |
| 108 |
"writes, file mappings (B<mmap>(2)), and unmappings (B<munmap>(2)) performed " |
| 109 |
"by one of the processes do not affect the other." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "" |
| 116 |
"The child process is an exact duplicate of the parent process except for the " |
| 117 |
"following points:" |
| 118 |
msgstr "" |
| 119 |
|
| 120 |
#. type: IP |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid "\\[bu]" |
| 125 |
msgstr "" |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "" |
| 131 |
"The child has its own unique process ID, and this PID does not match the ID " |
| 132 |
"of any existing process group (B<setpgid>(2)) or session." |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
msgid "The child's parent process ID is the same as the parent's process ID." |
| 139 |
msgstr "" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"The child does not inherit its parent's memory locks (B<mlock>(2), " |
| 146 |
"B<mlockall>(2))." |
| 147 |
msgstr "" |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
msgid "" |
| 153 |
"Process resource utilizations (B<getrusage>(2)) and CPU time counters " |
| 154 |
"(B<times>(2)) are reset to zero in the child." |
| 155 |
msgstr "" |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
msgid "" |
| 161 |
"The child's set of pending signals is initially empty (B<sigpending>(2))." |
| 162 |
msgstr "" |
| 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 |
"The child does not inherit semaphore adjustments from its parent " |
| 169 |
"(B<semop>(2))." |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "" |
| 176 |
"The child does not inherit process-associated record locks from its parent " |
| 177 |
"(B<fcntl>(2)). (On the other hand, it does inherit B<fcntl>(2) open file " |
| 178 |
"description locks and B<flock>(2) locks from its parent.)" |
| 179 |
msgstr "" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
msgid "" |
| 185 |
"The child does not inherit timers from its parent (B<setitimer>(2), " |
| 186 |
"B<alarm>(2), B<timer_create>(2))." |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"The child does not inherit outstanding asynchronous I/O operations from its " |
| 194 |
"parent (B<aio_read>(3), B<aio_write>(3)), nor does it inherit any " |
| 195 |
"asynchronous I/O contexts from its parent (see B<io_setup>(2))." |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"The process attributes in the preceding list are all specified in POSIX.1. " |
| 203 |
"The parent and child also differ with respect to the following Linux-" |
| 204 |
"specific process attributes:" |
| 205 |
msgstr "" |
| 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 child does not inherit directory change notifications (dnotify) from " |
| 212 |
"its parent (see the description of B<F_NOTIFY> in B<fcntl>(2))." |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"The B<prctl>(2) B<PR_SET_PDEATHSIG> setting is reset so that the child does " |
| 220 |
"not receive a signal when its parent terminates." |
| 221 |
msgstr "" |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"The default timer slack value is set to the parent's current timer slack " |
| 228 |
"value. See the description of B<PR_SET_TIMERSLACK> in B<prctl>(2)." |
| 229 |
msgstr "" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"Memory mappings that have been marked with the B<madvise>(2) " |
| 236 |
"B<MADV_DONTFORK> flag are not inherited across a B<fork>()." |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
msgid "" |
| 243 |
"Memory in address ranges that have been marked with the B<madvise>(2) " |
| 244 |
"B<MADV_WIPEONFORK> flag is zeroed in the child after a B<fork>(). (The " |
| 245 |
"B<MADV_WIPEONFORK> setting remains in place for those address ranges in the " |
| 246 |
"child.)" |
| 247 |
msgstr "" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "" |
| 253 |
"The termination signal of the child is always B<SIGCHLD> (see B<clone>(2))." |
| 254 |
msgstr "" |
| 255 |
|
| 256 |
#. type: Plain text |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
msgid "" |
| 260 |
"The port access permission bits set by B<ioperm>(2) are not inherited by " |
| 261 |
"the child; the child must turn on any bits that it requires using " |
| 262 |
"B<ioperm>(2)." |
| 263 |
msgstr "" |
| 264 |
|
| 265 |
#. type: Plain text |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
msgid "Note the following further points:" |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
msgid "" |
| 275 |
"The child process is created with a single thread\\[em]the one that called " |
| 276 |
"B<fork>(). The entire virtual address space of the parent is replicated in " |
| 277 |
"the child, including the states of mutexes, condition variables, and other " |
| 278 |
"pthreads objects; the use of B<pthread_atfork>(3) may be helpful for " |
| 279 |
"dealing with problems that this can cause." |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
msgid "" |
| 286 |
"After a B<fork>() in a multithreaded program, the child can safely call " |
| 287 |
"only async-signal-safe functions (see B<signal-safety>(7)) until such time " |
| 288 |
"as it calls B<execve>(2)." |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#. type: Plain text |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
msgid "" |
| 295 |
"The child inherits copies of the parent's set of open file descriptors. " |
| 296 |
"Each file descriptor in the child refers to the same open file description " |
| 297 |
"(see B<open>(2)) as the corresponding file descriptor in the parent. This " |
| 298 |
"means that the two file descriptors share open file status flags, file " |
| 299 |
"offset, and signal-driven I/O attributes (see the description of B<F_SETOWN> " |
| 300 |
"and B<F_SETSIG> in B<fcntl>(2))." |
| 301 |
msgstr "" |
| 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 "" |
| 307 |
"The child inherits copies of the parent's set of open message queue " |
| 308 |
"descriptors (see B<mq_overview>(7)). Each file descriptor in the child " |
| 309 |
"refers to the same open message queue description as the corresponding file " |
| 310 |
"descriptor in the parent. This means that the two file descriptors share " |
| 311 |
"the same flags (I<mq_flags>)." |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
msgid "" |
| 318 |
"The child inherits copies of the parent's set of open directory streams (see " |
| 319 |
"B<opendir>(3)). POSIX.1 says that the corresponding directory streams in " |
| 320 |
"the parent and child I<may> share the directory stream positioning; on Linux/" |
| 321 |
"glibc they do not." |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "RETURN VALUE" |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
msgid "" |
| 335 |
"On success, the PID of the child process is returned in the parent, and 0 is " |
| 336 |
"returned in the child. On failure, -1 is returned in the parent, no child " |
| 337 |
"process is created, and I<errno> is set to indicate the error." |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. type: SH |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "ERRORS" |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#. type: TP |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, no-wrap |
| 351 |
msgid "B<EAGAIN>" |
| 352 |
msgstr "" |
| 353 |
|
| 354 |
#. NOTE! The following should match the description in pthread_create(3) |
| 355 |
#. type: Plain text |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
msgid "" |
| 359 |
"A system-imposed limit on the number of threads was encountered. There are " |
| 360 |
"a number of limits that may trigger this error:" |
| 361 |
msgstr "" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
msgid "" |
| 367 |
"the B<RLIMIT_NPROC> soft resource limit (set via B<setrlimit>(2)), which " |
| 368 |
"limits the number of processes and threads for a real user ID, was reached;" |
| 369 |
msgstr "" |
| 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 |
"the kernel's system-wide limit on the number of processes and threads, I</" |
| 376 |
"proc/sys/kernel/threads-max>, was reached (see B<proc>(5));" |
| 377 |
msgstr "" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "" |
| 383 |
"the maximum number of PIDs, I</proc/sys/kernel/pid_max>, was reached (see " |
| 384 |
"B<proc>(5)); or" |
| 385 |
msgstr "" |
| 386 |
|
| 387 |
#. type: Plain text |
| 388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 389 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 390 |
msgid "" |
| 391 |
"the PID limit (I<pids.max>) imposed by the cgroup \"process number\" (PIDs) " |
| 392 |
"controller was reached." |
| 393 |
msgstr "" |
| 394 |
|
| 395 |
#. type: Plain text |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
msgid "" |
| 399 |
"The caller is operating under the B<SCHED_DEADLINE> scheduling policy and " |
| 400 |
"does not have the reset-on-fork flag set. See B<sched>(7)." |
| 401 |
msgstr "" |
| 402 |
|
| 403 |
#. type: TP |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "B<ENOMEM>" |
| 408 |
msgstr "" |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"B<fork>() failed to allocate the necessary kernel structures because memory " |
| 415 |
"is tight." |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "" |
| 422 |
"An attempt was made to create a child process in a PID namespace whose " |
| 423 |
"\"init\" process has terminated. See B<pid_namespaces>(7)." |
| 424 |
msgstr "" |
| 425 |
|
| 426 |
#. type: TP |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
#, no-wrap |
| 430 |
msgid "B<ENOSYS>" |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#. e.g., arm (optionally), blackfin, c6x, frv, h8300, microblaze, xtensa |
| 434 |
#. type: Plain text |
| 435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 436 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
msgid "" |
| 438 |
"B<fork>() is not supported on this platform (for example, hardware without " |
| 439 |
"a Memory-Management Unit)." |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: TP |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, no-wrap |
| 446 |
msgid "B<ERESTARTNOINTR> (since Linux 2.6.17)" |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. commit 4a2c7a7837da1b91468e50426066d988050e4d56 |
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"System call was interrupted by a signal and will be restarted. (This can be " |
| 455 |
"seen only during a trace.)" |
| 456 |
msgstr "" |
| 457 |
|
| 458 |
#. type: SH |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
#, no-wrap |
| 462 |
msgid "VERSIONS" |
| 463 |
msgstr "" |
| 464 |
|
| 465 |
#. type: SS |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
#, no-wrap |
| 469 |
msgid "C library/kernel differences" |
| 470 |
msgstr "" |
| 471 |
|
| 472 |
#. nptl/sysdeps/unix/sysv/linux/fork.c |
| 473 |
#. and does some magic to ensure that getpid(2) returns the right value. |
| 474 |
#. type: Plain text |
| 475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 476 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 477 |
msgid "" |
| 478 |
"Since glibc 2.3.3, rather than invoking the kernel's B<fork>() system call, " |
| 479 |
"the glibc B<fork>() wrapper that is provided as part of the NPTL threading " |
| 480 |
"implementation invokes B<clone>(2) with flags that provide the same effect " |
| 481 |
"as the traditional system call. (A call to B<fork>() is equivalent to a " |
| 482 |
"call to B<clone>(2) specifying I<flags> as just B<SIGCHLD>.) The glibc " |
| 483 |
"wrapper invokes any fork handlers that have been established using " |
| 484 |
"B<pthread_atfork>(3)." |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#. type: SS |
| 488 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 489 |
#: opensuse-tumbleweed |
| 490 |
#, no-wrap |
| 491 |
msgid "Async-signal safety" |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 496 |
#: opensuse-tumbleweed |
| 497 |
msgid "B<_Fork>(3) is an async-signal safe variant of B<fork>(2)." |
| 498 |
msgstr "" |
| 499 |
|
| 500 |
#. type: SH |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, no-wrap |
| 504 |
msgid "STANDARDS" |
| 505 |
msgstr "" |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 509 |
#: opensuse-tumbleweed |
| 510 |
msgid "POSIX.1-2024." |
| 511 |
msgstr "" |
| 512 |
|
| 513 |
#. type: SH |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
#, no-wrap |
| 517 |
msgid "HISTORY" |
| 518 |
msgstr "" |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 522 |
#: opensuse-tumbleweed |
| 523 |
msgid "4.3BSD, SVr4, POSIX.1-1988." |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#. type: SH |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "NOTES" |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"Under Linux, B<fork>() is implemented using copy-on-write pages, so the " |
| 538 |
"only penalty that it incurs is the time and memory required to duplicate the " |
| 539 |
"parent's page tables, and to create a unique task structure for the child." |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#. type: SH |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
#, no-wrap |
| 546 |
msgid "EXAMPLES" |
| 547 |
msgstr "" |
| 548 |
|
| 549 |
#. type: Plain text |
| 550 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 551 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 552 |
msgid "See B<pipe>(2) and B<wait>(2) for more examples." |
| 553 |
msgstr "" |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 557 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 558 |
#, no-wrap |
| 559 |
msgid "" |
| 560 |
"#include E<lt>signal.hE<gt>\n" |
| 561 |
"#include E<lt>stdint.hE<gt>\n" |
| 562 |
"#include E<lt>stdio.hE<gt>\n" |
| 563 |
"#include E<lt>stdlib.hE<gt>\n" |
| 564 |
"#include E<lt>sys/types.hE<gt>\n" |
| 565 |
"#include E<lt>unistd.hE<gt>\n" |
| 566 |
"\\&\n" |
| 567 |
"int\n" |
| 568 |
"main(void)\n" |
| 569 |
"{\n" |
| 570 |
" pid_t pid;\n" |
| 571 |
"\\&\n" |
| 572 |
" if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) {\n" |
| 573 |
" perror(\"signal\");\n" |
| 574 |
" exit(EXIT_FAILURE);\n" |
| 575 |
" }\n" |
| 576 |
" pid = fork();\n" |
| 577 |
" switch (pid) {\n" |
| 578 |
" case -1:\n" |
| 579 |
" perror(\"fork\");\n" |
| 580 |
" exit(EXIT_FAILURE);\n" |
| 581 |
" case 0:\n" |
| 582 |
" puts(\"Child exiting.\");\n" |
| 583 |
" fflush(stdout);\n" |
| 584 |
" _exit(EXIT_SUCCESS);\n" |
| 585 |
" default:\n" |
| 586 |
" printf(\"Child is PID %jd\\[rs]n\", (intmax_t) pid);\n" |
| 587 |
" puts(\"Parent exiting.\");\n" |
| 588 |
" exit(EXIT_SUCCESS);\n" |
| 589 |
" }\n" |
| 590 |
"}\n" |
| 591 |
msgstr "" |
| 592 |
|
| 593 |
#. SRC END |
| 594 |
#. type: SH |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
#, no-wrap |
| 598 |
msgid "SEE ALSO" |
| 599 |
msgstr "" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 603 |
#: opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"B<clone>(2), B<execve>(2), B<exit>(2), B<_exit>(2), B<setrlimit>(2), " |
| 606 |
"B<unshare>(2), B<vfork>(2), B<wait>(2), B<daemon>(3), B<_Fork>(3), " |
| 607 |
"B<pthread_atfork>(3), B<capabilities>(7), B<credentials>(7)" |
| 608 |
msgstr "" |
| 609 |
|
| 610 |
#. type: TH |
| 611 |
#: debian-trixie |
| 612 |
#, no-wrap |
| 613 |
msgid "2024-06-15" |
| 614 |
msgstr "" |
| 615 |
|
| 616 |
#. type: TH |
| 617 |
#: debian-trixie |
| 618 |
#, no-wrap |
| 619 |
msgid "Linux man-pages 6.9.1" |
| 620 |
msgstr "" |
| 621 |
|
| 622 |
#. type: Plain text |
| 623 |
#: debian-trixie |
| 624 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 625 |
msgstr "" |
| 626 |
|
| 627 |
#. type: Plain text |
| 628 |
#: debian-trixie fedora-44 fedora-rawhide |
| 629 |
msgid "POSIX.1-2008." |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#. type: Plain text |
| 633 |
#: debian-trixie fedora-44 fedora-rawhide |
| 634 |
msgid "POSIX.1-2001, SVr4, 4.3BSD." |
| 635 |
msgstr "" |
| 636 |
|
| 637 |
#. type: Plain text |
| 638 |
#: debian-trixie |
| 639 |
#, no-wrap |
| 640 |
msgid "" |
| 641 |
"#include E<lt>signal.hE<gt>\n" |
| 642 |
"#include E<lt>stdint.hE<gt>\n" |
| 643 |
"#include E<lt>stdio.hE<gt>\n" |
| 644 |
"#include E<lt>stdlib.hE<gt>\n" |
| 645 |
"#include E<lt>sys/types.hE<gt>\n" |
| 646 |
"#include E<lt>unistd.hE<gt>\n" |
| 647 |
"\\&\n" |
| 648 |
"int\n" |
| 649 |
"main(void)\n" |
| 650 |
"{\n" |
| 651 |
" pid_t pid;\n" |
| 652 |
"\\&\n" |
| 653 |
" if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) {\n" |
| 654 |
" perror(\"signal\");\n" |
| 655 |
" exit(EXIT_FAILURE);\n" |
| 656 |
" }\n" |
| 657 |
" pid = fork();\n" |
| 658 |
" switch (pid) {\n" |
| 659 |
" case -1:\n" |
| 660 |
" perror(\"fork\");\n" |
| 661 |
" exit(EXIT_FAILURE);\n" |
| 662 |
" case 0:\n" |
| 663 |
" puts(\"Child exiting.\");\n" |
| 664 |
" exit(EXIT_SUCCESS);\n" |
| 665 |
" default:\n" |
| 666 |
" printf(\"Child is PID %jd\\[rs]n\", (intmax_t) pid);\n" |
| 667 |
" puts(\"Parent exiting.\");\n" |
| 668 |
" exit(EXIT_SUCCESS);\n" |
| 669 |
" }\n" |
| 670 |
"}\n" |
| 671 |
msgstr "" |
| 672 |
|
| 673 |
#. type: Plain text |
| 674 |
#: debian-trixie |
| 675 |
msgid "" |
| 676 |
"B<clone>(2), B<execve>(2), B<exit>(2), B<setrlimit>(2), B<unshare>(2), " |
| 677 |
"B<vfork>(2), B<wait>(2), B<daemon>(3), B<pthread_atfork>(3), " |
| 678 |
"B<capabilities>(7), B<credentials>(7)" |
| 679 |
msgstr "" |
| 680 |
|
| 681 |
#. type: TH |
| 682 |
#: fedora-44 fedora-rawhide |
| 683 |
#, no-wrap |
| 684 |
msgid "2025-01-14" |
| 685 |
msgstr "" |
| 686 |
|
| 687 |
#. type: TH |
| 688 |
#: fedora-44 fedora-rawhide |
| 689 |
#, no-wrap |
| 690 |
msgid "Linux man-pages 6.13" |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: fedora-44 fedora-rawhide |
| 695 |
msgid "" |
| 696 |
"B<clone>(2), B<execve>(2), B<exit>(2), B<_exit>(2), B<setrlimit>(2), " |
| 697 |
"B<unshare>(2), B<vfork>(2), B<wait>(2), B<daemon>(3), B<pthread_atfork>(3), " |
| 698 |
"B<capabilities>(7), B<credentials>(7)" |
| 699 |
msgstr "" |
| 700 |
|
| 701 |
#. type: TH |
| 702 |
#: mageia-cauldron |
| 703 |
#, no-wrap |
| 704 |
msgid "Linux man-pages 6.17" |
| 705 |
msgstr "" |
| 706 |
|
| 707 |
#. type: TH |
| 708 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 709 |
#, no-wrap |
| 710 |
msgid "Linux man-pages (unreleased)" |
| 711 |
msgstr "" |