Debian Codegraph @

po/ru/man2/vfork.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2016.
5 # Dmitriy Ovchinnikov <[email protected]>, 2012.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Yuri Kozlov <[email protected]>, 2012-2019.
9 # Иван Павлов <[email protected]>, 2019.
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: manpages-l10n\n"
13 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
14 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
15 "Last-Translator: Yuri Kozlov <[email protected]>\n"
16 "Language-Team: Russian <[email protected]>\n"
17 "Language: ru\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=UTF-8\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
22 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
23 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
24 "X-Generator: Lokalize 2.0\n"
25
26 #. type: TH
27 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
28 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "vfork"
31 msgstr "vfork"
32
33 #. type: TH
34 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "2026-02-08"
38 msgstr "8 февраля 2026 г."
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, fuzzy, no-wrap
43 #| msgid "Linux man-pages 6.17"
44 msgid "Linux man-pages 6.18"
45 msgstr "Справочные страницы Linux 6.17"
46
47 #. type: SH
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, no-wrap
51 msgid "NAME"
52 msgstr "НАИМЕНОВАНИЕ"
53
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid "vfork - create a child process and block parent"
58 msgstr "vfork - создаёт дочерний процесс и блокирует родительский"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>unistd.hE<gt>>\n"
85 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<pid_t vfork(void);>\n"
92 msgstr "B<pid_t vfork(void);>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
99 msgstr ""
100 "Требования макроса тестирования свойств для glibc (см. "
101 "B<feature_test_macros>(7)):"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid "B<vfork>():"
107 msgstr "B<vfork>():"
108
109 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, fuzzy, no-wrap
114 #| msgid ""
115 #| "(_XOPEN_SOURCE\\ E<gt>=\\ 500) && ! (_POSIX_C_SOURCE\\ E<gt>=\\ 200809L)\n"
116 #| " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
117 #| " || /* Glibc versions E<lt>= 2.19: */ _BSD_SOURCE\n"
118 msgid ""
119 " Since glibc 2.12:\n"
120 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
121 " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
122 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
123 " Before glibc 2.12:\n"
124 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
125 msgstr ""
126 "(_XOPEN_SOURCE\\ E<gt>=\\ 500) && ! (_POSIX_C_SOURCE\\ E<gt>=\\ 200809L)\n"
127 " || /* начиная с glibc 2.19: */ _DEFAULT_SOURCE\n"
128 " || /* в версиях glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
129
130 #. type: SH
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "DESCRIPTION"
135 msgstr "ОПИСАНИЕ"
136
137 #. type: SS
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "Standard description"
142 msgstr "Описание в стандарте"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "(From POSIX.1) The B<vfork>() function has the same effect as B<fork>(2), "
149 "except that the behavior is undefined if the process created by B<vfork>() "
150 "either modifies any data other than a variable of type I<pid_t> used to "
151 "store the return value from B<vfork>(), or returns from the function in "
152 "which B<vfork>() was called, or calls any other function before "
153 "successfully calling B<_exit>(2) or one of the B<exec>(3) family of "
154 "functions."
155 msgstr ""
156 "(Из POSIX) Функция B<vfork>() аналогична B<fork>(2) за тем исключением, что "
157 "поведение не определено, если процесс, созданный B<vfork>(), изменяет любые "
158 "данные, кроме переменной типа I<pid_t>, используемой в качестве значения, "
159 "возвращаемого B<vfork>(), или возвращается из функции, из которой была "
160 "вызвана функция B<vfork>(), или вызывает любую функцию до удачного "
161 "исполнения B<_exit>(2) или одной из функций семейства B<exec>(3)."
162
163 #. type: SS
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "Linux description"
168 msgstr "Описание в Linux"
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "B<vfork>(), just like B<fork>(2), creates a child process of the calling "
175 "process. For details and return value and errors, see B<fork>(2)."
176 msgstr ""
177 "B<vfork>(), так же как и B<fork>(2), создаёт дочерний процесс для "
178 "вызывающего процесса. Подробности, возвращаемые значения и ошибки смотрите "
179 "в B<fork>(2)."
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 "B<vfork>() is a special case of B<clone>(2). It is used to create new "
186 "processes without copying the page tables of the parent process. It may be "
187 "useful in performance-sensitive applications where a child is created which "
188 "then immediately issues an B<execve>(2)."
189 msgstr ""
190 "B<vfork>() \\(em это специальный вариант B<clone>(2). Он используется для "
191 "создания новых процессов без копирования таблиц страниц родительского "
192 "процесса. Это может использоваться в приложениях, критичных к "
193 "производительности, для создания дочерних процессов, сразу же запускающих "
194 "B<execve>(2)."
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "B<vfork>() differs from B<fork>(2) in that the calling thread is suspended "
201 "until the child terminates (either normally, by calling B<_exit>(2), or "
202 "abnormally, after delivery of a fatal signal), or it makes a call to "
203 "B<execve>(2). Until that point, the child shares all memory with its "
204 "parent, including the stack. The child must not return from the current "
205 "function or call B<exit>(3) (which would have the effect of calling exit "
206 "handlers established by the parent process and flushing the parent's "
207 "B<stdio>(3) buffers), but may call B<_exit>(2)."
208 msgstr ""
209 "Вызов B<vfork>() отличается от B<fork>(2) тем, что вызывающая нить "
210 "блокируется до тех пор, пока не завершится потомок (обычно, вызовом "
211 "B<_exit>(2) или, что ненормально, из-за принятого необработанного сигнала) "
212 "или не выполнит B<execve>(2). До этих пор потомок имеет общую память с "
213 "родителем, включая стек. Потомок не должен выходить из текущей функции или "
214 "вызывать B<exit>(3) (что приводит к вызовы обработчиков выхода, настроенных "
215 "родительским процессом и сбрасывает буферы B<stdio>(3) родителя), но может "
216 "вызвать B<_exit>(2)."
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "As with B<fork>(2), the child process created by B<vfork>() inherits copies "
223 "of various of the caller's process attributes (e.g., file descriptors, "
224 "signal dispositions, and current working directory); the B<vfork>() call "
225 "differs only in the treatment of the virtual address space, as described "
226 "above."
227 msgstr ""
228 "Как и у B<fork>(2), дочерний процесс, созданный B<vfork>(), наследует копии "
229 "различных атрибутов вызвавшего процесса (например, дескрипторы файлов, "
230 "обработчики сигналов и текущий рабочий каталог); вызов B<vfork>() отличается "
231 "только в применении виртуального адресного пространства (как описывалось "
232 "выше)."
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 "Signals sent to the parent arrive after the child releases the parent's "
239 "memory (i.e., after the child terminates or calls B<execve>(2))."
240 msgstr ""
241 "Сигналы передаются родителю после того, как потомок разблокирует его память "
242 "(т.е. после того, как потомок завершится или вызовет B<execve>(2))."
243
244 #. type: SS
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "Historic description"
249 msgstr "Историческое описание"
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 ""
255 "Under Linux, B<fork>(2) is implemented using copy-on-write pages, so the "
256 "only penalty incurred by B<fork>(2) is the time and memory required to "
257 "duplicate the parent's page tables, and to create a unique task structure "
258 "for the child. However, in the bad old days a B<fork>(2) would require "
259 "making a complete copy of the caller's data space, often needlessly, since "
260 "usually immediately afterward an B<exec>(3) is done. Thus, for greater "
261 "efficiency, BSD introduced the B<vfork>() system call, which did not fully "
262 "copy the address space of the parent process, but borrowed the parent's "
263 "memory and thread of control until a call to B<execve>(2) or an exit "
264 "occurred. The parent process was suspended while the child was using its "
265 "resources. The use of B<vfork>() was tricky: for example, not modifying "
266 "data in the parent process depended on knowing which variables were held in "
267 "a register."
268 msgstr ""
269 "В Linux вызов B<fork>(2) реализован при помощи страниц, «копируемых при "
270 "записи» (copy-on-write), поэтому единственная задержка, возникающая при "
271 "вызове B<fork>(2) \\(em это время, необходимое для создания копии таблиц "
272 "страниц родительского процесса и уникальной структуры описания задачи "
273 "дочернего процесса. Однако, в прошлом для B<fork>(2) могло требоваться "
274 "создание полной копии пространства данных вызывающего процесса, что часто "
275 "было ненужно, так как в потомке сразу следовал запуск функции B<exec>(3). "
276 "Поэтому для большей эффективности в BSD был предложен системный вызов "
277 "B<vfork>(), который не копировал адресное пространство процесса, а "
278 "использовал то же самое пространство и управления нитью, блокируя "
279 "родительский процесс до вызова B<execve>(2) или до прекращения работы "
280 "потомка. Родительский процесс останавливался до тех пор, пока потомок "
281 "использовал его ресурсы. Использование B<vfork>() было ненадёжно: например, "
282 "сохранность данных родительского процесса зависела от того, хранились ли на "
283 "тот момент переменные в регистрах."
284
285 #. type: SH
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "VERSIONS"
290 msgstr "ВЕРСИИ"
291
292 #. In AIXv3.1 vfork is equivalent to fork.
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 "The requirements put on B<vfork>() by the standards are weaker than those "
298 "put on B<fork>(2), so an implementation where the two are synonymous is "
299 "compliant. In particular, the programmer cannot rely on the parent "
300 "remaining blocked until the child either terminates or calls B<execve>(2), "
301 "and cannot rely on any specific behavior with respect to shared memory."
302 msgstr ""
303 "Требования, предъявляемые стандартами к B<vfork>(), не такие жёсткие как те, "
304 "которые предъявляются к B<fork>(2), поэтому в реализации достаточно просто "
305 "сделать их синонимами. В частности, программист не может полагаться на "
306 "блокировку родителя до завершения потомка или до вызова им B<execve>(2), и "
307 "не может полагаться на специфическое поведение возникновения общей памяти."
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, fuzzy
313 #| msgid ""
314 #| "Some consider the semantics of B<vfork>() to be an architectural "
315 #| "blemish, and the 4.2BSD man page stated: \"This system call will be "
316 #| "eliminated when proper system sharing mechanisms are implemented. Users "
317 #| "should not depend on the memory sharing semantics of B<vfork>() as it "
318 #| "will, in that case, be made synonymous to B<fork>(2).\" However, even "
319 #| "though modern memory management hardware has decreased the performance "
320 #| "difference between B<fork>(2) and B<vfork>(), there are various reasons "
321 #| "why Linux and other systems have retained B<vfork>():"
322 msgid ""
323 "Some consider the semantics of B<vfork>() to be an architectural blemish, "
324 "and the 4.2BSD man page stated: \\[lq]This system call will be eliminated "
325 "when proper system sharing mechanisms are implemented. Users should not "
326 "depend on the memory sharing semantics of I<vfork> as it will, in that case, "
327 "be made synonymous to I<fork>.\\[rq] However, even though modern memory "
328 "management hardware has decreased the performance difference between "
329 "B<fork>(2) and B<vfork>(), there are various reasons why Linux and other "
330 "systems have retained B<vfork>():"
331 msgstr ""
332 "Некоторые считают, что в семантике B<vfork>() есть архитектурный недостаток, "
333 "а в справочной странице BSD написано следующее: «Данный системный вызов "
334 "будет удалён после того, как будут правильно реализованы соответствующие "
335 "механизмы разделения ресурсов системы. Пользователи не должны опираться на "
336 "существующую семантику общей памяти B<vfork>(), то есть программа должна "
337 "быть аналогична программе с B<fork>(2)». Однако, даже при том, что "
338 "современные аппаратные средства управления памятью уменьшили разницу в "
339 "производительности между B<fork>(2) и B<vfork>(), есть другие причины почему "
340 "в Linux и других операционных системах B<vfork>() ещё существует:"
341
342 #. type: IP
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "\\[bu]"
347 msgstr "\\[bu]"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "Some performance-critical applications require the small performance "
354 "advantage conferred by B<vfork>()."
355 msgstr ""
356 "Для некоторых критичных к производительности приложений очень важна та "
357 "маленькая прибавка к производительности, предоставляемая B<vfork>()."
358
359 #. http://stackoverflow.com/questions/4259629/what-is-the-difference-between-fork-and-vfork
360 #. http://developers.sun.com/solaris/articles/subprocess/subprocess.html
361 #. http://mailman.uclinux.org/pipermail/uclinux-dev/2009-April/000684.html
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, fuzzy
366 #| msgid ""
367 #| "B<vfork>() can be implemented on systems that lack a memory-management "
368 #| "unit (MMU), but B<fork>(2) can't be implemented on such systems. "
369 #| "(POSIX.1-2008 removed B<vfork>() from the standard; the POSIX rationale "
370 #| "for the B<posix_spawn>(3) function notes that that function, which "
371 #| "provides functionality equivalent to B<fork>(2)+B<exec>(3), is designed "
372 #| "to be implementable on systems that lack an MMU.)"
373 msgid ""
374 "B<vfork>() can be implemented on systems that lack a memory-management unit "
375 "(MMU), but B<fork>(2) can't be implemented on such systems. (POSIX.1-2008 "
376 "removed B<vfork>() from the standard; the POSIX rationale for the "
377 "B<posix_spawn>(3) function notes that that function, which provides "
378 "functionality equivalent to B<fork>(2)+ B<exec>(3), is designed to be "
379 "implementable on systems that lack an MMU.)"
380 msgstr ""
381 "Вызов B<vfork>() может быть реализован в системах, у которых нет блока "
382 "управления памятью (MMU), а B<fork>(2) невозможно реализовать на таких "
383 "системах (из POSIX.1-2008 вызов B<vfork>() удалён; для реализации "
384 "эквивалента B<fork>(2)+B<exec>(3) в системах без MMU в POSIX предлагается "
385 "использовать функцию B<posix_spawn>(3))."
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 "On systems where memory is constrained, B<vfork>() avoids the need to "
392 "temporarily commit memory (see the description of I</proc/sys/vm/"
393 "overcommit_memory> in B<proc>(5)) in order to execute a new program. (This "
394 "can be especially beneficial where a large parent process wishes to execute "
395 "a small helper program in a child process.) By contrast, using B<fork>(2) "
396 "in this scenario requires either committing an amount of memory equal to the "
397 "size of the parent process (if strict overcommitting is in force) or "
398 "overcommitting memory with the risk that a process is terminated by the out-"
399 "of-memory (OOM) killer."
400 msgstr ""
401 "В системах с малым количеством памяти B<vfork>() при запуске новой программы "
402 "не выполняет временное выделение памяти (смотрите описание I</proc/sys/vm/"
403 "overcommit_memory> в B<proc>(5)) (это особенно полезно, если огромный "
404 "родительский процесс хочет выполнить маленькую вспомогательную программу в "
405 "дочернем процессе). Вызов B<fork>(2) в этом случае или потребуется выделения "
406 "количества памяти как у родительского процесса (если включён жёсткий учёт "
407 "обязательств) или перерасходует память с риском завершения процесса "
408 "посредством сторожа расходования памяти ядра (OOM)."
409
410 #. type: SS
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "Linux notes"
415 msgstr "Замечания, касающиеся Linux"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "Fork handlers established using B<pthread_atfork>(3) are not called when a "
422 "multithreaded program employing the NPTL threading library calls "
423 "B<vfork>(). Fork handlers are called in this case in a program using the "
424 "LinuxThreads threading library. (See B<pthreads>(7) for a description of "
425 "Linux threading libraries.)"
426 msgstr ""
427 "Обработчики fork, установленные с помощью B<pthread_atfork>(3), не "
428 "вызываются когда многонитиевая программа использует вызовы библиотеки нитей "
429 "NPTL B<vfork>(). Обработчики fork вызываются в этом случае в программе, в "
430 "которой используется библиотека нитей LinuxThreads. (См. в B<pthreads>(7) "
431 "описание библиотек нитей Linux.)"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "A call to B<vfork>() is equivalent to calling B<clone>(2) with I<flags> "
438 "specified as:"
439 msgstr ""
440 "Вызов B<vfork>() эквивалентен вызову B<clone>(2) со следующим значением "
441 "I<flags>:"
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid " CLONE_VM | CLONE_VFORK | SIGCHLD\n"
448 msgstr " CLONE_VM | CLONE_VFORK | SIGCHLD\n"
449
450 #. type: SH
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "STANDARDS"
455 msgstr "СТАНДАРТЫ"
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid "None."
461 msgstr "Отсутствуют."
462
463 #. type: SH
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid "HISTORY"
468 msgstr "ИСТОРИЯ"
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 msgid ""
474 "4.3BSD; POSIX.1-2001 (but marked OBSOLETE). POSIX.1-2008 removes the "
475 "specification of B<vfork>()."
476 msgstr ""
477 "4.3BSD; POSIX.1-2001 (помечен как УСТАРЕВШИЙ). Из POSIX.1-2008 описание "
478 "B<vfork>() было удалено."
479
480 #. In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still
481 #. present, but definitely on its way out'.
482 #. type: Plain text
483 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
484 #: opensuse-tumbleweed
485 #, fuzzy
486 #| msgid ""
487 #| "The B<vfork>() system call appeared in 3.0BSD. In 4.4BSD it was made "
488 #| "synonymous to B<fork>(2) but NetBSD introduced it again; see E<.UR "
489 #| "http://www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> "
490 #| "In Linux, it has been equivalent to B<fork>(2) until 2.2.0-pre6 or so. "
491 #| "Since 2.2.0-pre9 (on i386, somewhat later on other architectures) it is "
492 #| "an independent system call. Support was added in glibc 2.0.112."
493 msgid ""
494 "The B<vfork>() system call appeared in 3.0BSD. In 4.4BSD it was made "
495 "synonymous to B<fork>(2) but NetBSD introduced it again; see E<.UR http:"
496 "\\://www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> In "
497 "Linux, it has been equivalent to B<fork>(2) until Linux 2.2.0-pre6 or so. "
498 "Since Linux 2.2.0-pre9 (on i386, somewhat later on other architectures) it "
499 "is an independent system call. Support was added in glibc 2.0.112."
500 msgstr ""
501 "Системный вызов B<vfork>() впервые появился в 30BSD. В 4.4BSD он стал "
502 "синонимом B<fork>(2), но в NetBSD он был введён снова; смотрите E<.UR http://"
503 "www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> В Linux "
504 "этот системный вызов был эквивалентом B<fork>(2), примерно, до ядра 2.2.0-"
505 "pre6. Начиная с 2.2.0-pre9 (на i386 и немного позже на других архитектурах), "
506 "он стал независимым системным вызовом. Его поддержка была добавлена в glibc "
507 "2.0.112."
508
509 #. type: SH
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "CAVEATS"
514 msgstr ""
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "The child process should take care not to modify the memory in unintended "
521 "ways, since such changes will be seen by the parent process once the child "
522 "terminates or executes another program. In this regard, signal handlers can "
523 "be especially problematic: if a signal handler that is invoked in the child "
524 "of B<vfork>() changes memory, those changes may result in an inconsistent "
525 "process state from the perspective of the parent process (e.g., memory "
526 "changes would be visible in the parent, but changes to the state of open "
527 "file descriptors would not be visible)."
528 msgstr ""
529 "Потомок не должен изменять память не ожидаемым образом, так как такие "
530 "изменения будут видны родительскому процессу после завершения потомка или "
531 "выполнении другой программы. При таком отношении особенно остро стоит "
532 "проблема в обработчиках сигналов: если обработчик сигналов, вызванный в "
533 "потомке (созданном B<vfork>()), изменяет память, то эти изменения могут "
534 "привести к нарушению целостности состояния процесса с точки зрения родителя "
535 "(например, изменения памяти были бы видны родителю, а изменения состояния "
536 "открытых файловых дескрипторов не видны)."
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "When B<vfork>() is called in a multithreaded process, only the calling "
543 "thread is suspended until the child terminates or executes a new program. "
544 "This means that the child is sharing an address space with other running "
545 "code. This can be dangerous if another thread in the parent process changes "
546 "credentials (using B<setuid>(2) or similar), since there are now two "
547 "processes with different privilege levels running in the same address "
548 "space. As an example of the dangers, suppose that a multithreaded program "
549 "running as root creates a child using B<vfork>(). After the B<vfork>(), a "
550 "thread in the parent process drops the process to an unprivileged user in "
551 "order to run some untrusted code (e.g., perhaps via plug-in opened with "
552 "B<dlopen>(3)). In this case, attacks are possible where the parent process "
553 "uses B<mmap>(2) to map in code that will be executed by the privileged "
554 "child process."
555 msgstr ""
556 "Если B<vfork>() вызывается многонитиевом процессе, то в ожидании завершения "
557 "процесса или запуска новой программы приостанавливается только вызывающая "
558 "нить. Это означает, что потомок совместно использует адресное пространство "
559 "другим выполняющимся кодом. Это может быть опасно, если другая нить в "
560 "родительском процессе изменяет полномочия (с помощью B<setuid>(2) и "
561 "подобных), так как теперь есть два процесса с разным уровнем прав, "
562 "выполняемых в одном адресном пространстве. Как пример представим, что "
563 "многонитиевая программа, работающая с правами суперпользователя, создаёт "
564 "потомка с помощью B<vfork>(). После B<vfork>() нить в родительском процессе "
565 "понижает права процесса до непривилегированных, чтобы выполнить некий "
566 "недоверенный код (например, модуль, открытый через B<dlopen>(3)). В этом "
567 "случае появляется уязвимость, если родительский процесс использует "
568 "B<mmap>(2) для отображения кода, то он будет выполнен в привилегированном "
569 "дочернем процессе."
570
571 #. type: SH
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "BUGS"
576 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
577
578 #. As far as I can tell, the following is not true in Linux 2.6.19:
579 #. Currently (Linux 2.3.25),
580 #. .BR strace (1)
581 #. cannot follow
582 #. .BR vfork ()
583 #. and requires a kernel patch.
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "Details of the signal handling are obscure and differ between systems. The "
589 "BSD man page states: \"To avoid a possible deadlock situation, processes "
590 "that are children in the middle of a B<vfork>() are never sent B<SIGTTOU> "
591 "or B<SIGTTIN> signals; rather, output or I<ioctl>s are allowed and input "
592 "attempts result in an end-of-file indication.\""
593 msgstr ""
594 "Обработка сигналов ещё более запутана и различается от системы к системе. В "
595 "справочной странице BSD написано следующее: «Для исключения возможности "
596 "взаимных блокировок процессы, находящиеся в середине исполнения B<vfork>(), "
597 "никогда не получат сигналов B<SIGTTOU> или B<SIGTTIN>, хотя вывод или "
598 "I<ioctl> всегда разрешены, а попытки ввода приводят к ситуации появления "
599 "конца файла»."
600
601 #. type: SH
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "SEE ALSO"
606 msgstr "СМОТРИТЕ ТАКЖЕ"
607
608 #. type: Plain text
609 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
610 #: opensuse-tumbleweed
611 #, fuzzy
612 #| msgid ""
613 #| "B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<unshare>(2), "
614 #| "B<wait>(2)"
615 msgid ""
616 "B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<_Fork>(3), "
617 "B<unshare>(2), B<wait>(2)"
618 msgstr ""
619 "B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<unshare>(2), B<wait>(2)"
620
621 #. type: TH
622 #: debian-trixie
623 #, no-wrap
624 msgid "2024-05-02"
625 msgstr "2 мая 2024 г."
626
627 #. type: TH
628 #: debian-trixie
629 #, no-wrap
630 msgid "Linux man-pages 6.9.1"
631 msgstr "Страницы руководства Linux 6.9.1"
632
633 #. type: Plain text
634 #: debian-trixie
635 msgid "Standard C library (I<libc>, I<-lc>)"
636 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
637
638 #. In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still
639 #. present, but definitely on its way out'.
640 #. type: Plain text
641 #: debian-trixie fedora-44 fedora-rawhide
642 #, fuzzy
643 #| msgid ""
644 #| "The B<vfork>() system call appeared in 3.0BSD. In 4.4BSD it was made "
645 #| "synonymous to B<fork>(2) but NetBSD introduced it again; see E<.UR "
646 #| "http://www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> "
647 #| "In Linux, it has been equivalent to B<fork>(2) until 2.2.0-pre6 or so. "
648 #| "Since 2.2.0-pre9 (on i386, somewhat later on other architectures) it is "
649 #| "an independent system call. Support was added in glibc 2.0.112."
650 msgid ""
651 "The B<vfork>() system call appeared in 3.0BSD. In 4.4BSD it was made "
652 "synonymous to B<fork>(2) but NetBSD introduced it again; see E<.UR http://"
653 "www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> In Linux, "
654 "it has been equivalent to B<fork>(2) until Linux 2.2.0-pre6 or so. Since "
655 "Linux 2.2.0-pre9 (on i386, somewhat later on other architectures) it is an "
656 "independent system call. Support was added in glibc 2.0.112."
657 msgstr ""
658 "Системный вызов B<vfork>() впервые появился в 30BSD. В 4.4BSD он стал "
659 "синонимом B<fork>(2), но в NetBSD он был введён снова; смотрите E<.UR http://"
660 "www.netbsd.org\\:/Documentation\\:/kernel\\:/vfork.html> E<.UE .> В Linux "
661 "этот системный вызов был эквивалентом B<fork>(2), примерно, до ядра 2.2.0-"
662 "pre6. Начиная с 2.2.0-pre9 (на i386 и немного позже на других архитектурах), "
663 "он стал независимым системным вызовом. Его поддержка была добавлена в glibc "
664 "2.0.112."
665
666 #. type: Plain text
667 #: debian-trixie fedora-44 fedora-rawhide
668 msgid ""
669 "B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<unshare>(2), B<wait>(2)"
670 msgstr ""
671 "B<clone>(2), B<execve>(2), B<_exit>(2), B<fork>(2), B<unshare>(2), B<wait>(2)"
672
673 #. type: TH
674 #: fedora-44 fedora-rawhide
675 #, no-wrap
676 msgid "2024-07-23"
677 msgstr "23 июля 2024 г."
678
679 #. type: TH
680 #: fedora-44 fedora-rawhide
681 #, no-wrap
682 msgid "Linux man-pages 6.13"
683 msgstr "Страницы руководства Linux 6.13"
684
685 #. type: TH
686 #: mageia-cauldron
687 #, no-wrap
688 msgid "Linux man-pages 6.17"
689 msgstr "Страницы руководства Linux 6.17"
690
691 #. type: TH
692 #: opensuse-leap-16-1 opensuse-tumbleweed
693 #, no-wrap
694 msgid "Linux man-pages (unreleased)"
695 msgstr "Страницы руководства Linux (не выпущены)"