<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Помогите разобраться с fork()]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=24809</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24809&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Помогите разобраться с fork()».]]></description>
		<lastBuildDate>Mon, 22 Oct 2012 13:49:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Помогите разобраться с fork()]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=305085#p305085</link>
			<description><![CDATA[<p>посмотрите вниматель, какие пиды он печатает.... их всего 3...</p>]]></description>
			<author><![CDATA[null@example.com (Fat-Zer)]]></author>
			<pubDate>Mon, 22 Oct 2012 13:49:20 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=305085#p305085</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помогите разобраться с fork()]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=304949#p304949</link>
			<description><![CDATA[<p>Пользуйтесь тэгами (code, в данном случае), правильно выбирайте раздел для создания темы.</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Mon, 22 Oct 2012 07:22:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=304949#p304949</guid>
		</item>
		<item>
			<title><![CDATA[Помогите разобраться с fork()]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=304948#p304948</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (girzgenomi)]]></author>
			<pubDate>Mon, 22 Oct 2012 07:21:08 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=304948#p304948</guid>
		</item>
	</channel>
</rss>
