<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Помогите разобраться с fork()]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24809&amp;type=atom" />
	<updated>2012-10-22T13:49:20Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=24809</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите разобраться с fork()]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305085#p305085" />
			<content type="html"><![CDATA[<p>посмотрите вниматель, какие пиды он печатает.... их всего 3...</p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2012-10-22T13:49:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305085#p305085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите разобраться с fork()]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=304949#p304949" />
			<content type="html"><![CDATA[<p>Пользуйтесь тэгами (code, в данном случае), правильно выбирайте раздел для создания темы.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-10-22T07:22:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=304949#p304949</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите разобраться с fork()]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=304948#p304948" />
			<content type="html"><![CDATA[<p>Всем привет. Помогите разобраться с форком.<br />Нужно чтобы код создал четыре процесса, но у меня создается шесть. <br /></p><div class="codebox"><pre><code>#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;
int main(void)
{
int pid_1, pid_2;

printf (&quot;ppid_1=%d.\n&quot;, getpid());

{
pid_1 = fork();
if (pid_1 == 0) printf(&quot;pid_1=%d.\n&quot;, getpid());
} 

printf (&quot;ppid_2=%d.\n&quot;, getpid());

{
pid_2 = fork();
if (pid_2 == 0) printf(&quot;pid_2=%d.\n&quot;, getpid());
}

return 0;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[girzgenomi]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26160</uri>
			</author>
			<updated>2012-10-22T07:21:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=304948#p304948</id>
		</entry>
</feed>
