<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Understanding Linux InterProcess Communication-III: Duplicate Process</title>
	<atom:link href="https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: amritpreet singh</title>
		<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/#comment-3282</link>
		<dc:creator><![CDATA[amritpreet singh]]></dc:creator>
		<pubDate>Sat, 05 Jan 2013 15:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2131#comment-3282</guid>
		<description><![CDATA[studied and implemented
# all questions on signal handlers using signal().
# signal handler using sigaction().
# retrieval of the siginfo.]]></description>
		<content:encoded><![CDATA[<p>studied and implemented<br />
# all questions on signal handlers using signal().<br />
# signal handler using sigaction().<br />
# retrieval of the siginfo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samta</title>
		<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/#comment-3280</link>
		<dc:creator><![CDATA[samta]]></dc:creator>
		<pubDate>Sat, 05 Jan 2013 08:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2131#comment-3280</guid>
		<description><![CDATA[Implemented
#Todays assignment questions on signal system calls and sigaction
#Obtained the signal info using signal structure]]></description>
		<content:encoded><![CDATA[<p>Implemented<br />
#Todays assignment questions on signal system calls and sigaction<br />
#Obtained the signal info using signal structure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samta</title>
		<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/#comment-3279</link>
		<dc:creator><![CDATA[samta]]></dc:creator>
		<pubDate>Fri, 04 Jan 2013 10:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2131#comment-3279</guid>
		<description><![CDATA[**Resolved the issue faced above in earlier assignment by assuming any process can function first child or parent 

Implemented
#All the 4 exec functions
#using the file descriptor frm 1 process into another replaced process
#called fork() function in the child process and kept the parent process and the new replaced process printg their data

**Issues faced
1)All the printf commands above fork() or exec() were nt printg the data in the output
Resolved this by putting \n at the end of every printf statement. as without \n at the end it was taking data in the stdout buffer but was nt printg it. 

2)execlp and execvp were nt executing
as  in it one has to put the name of the  file twice and nt once]]></description>
		<content:encoded><![CDATA[<p>**Resolved the issue faced above in earlier assignment by assuming any process can function first child or parent </p>
<p>Implemented<br />
#All the 4 exec functions<br />
#using the file descriptor frm 1 process into another replaced process<br />
#called fork() function in the child process and kept the parent process and the new replaced process printg their data</p>
<p>**Issues faced<br />
1)All the printf commands above fork() or exec() were nt printg the data in the output<br />
Resolved this by putting \n at the end of every printf statement. as without \n at the end it was taking data in the stdout buffer but was nt printg it. </p>
<p>2)execlp and execvp were nt executing<br />
as  in it one has to put the name of the  file twice and nt once</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amritpreet singh</title>
		<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/#comment-3278</link>
		<dc:creator><![CDATA[amritpreet singh]]></dc:creator>
		<pubDate>Thu, 03 Jan 2013 11:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2131#comment-3278</guid>
		<description><![CDATA[happened with me too.........added a loop before return statement to stop the prior termination of the parent process.
if(pid)
{     for(i=0;i&lt;20;i++)
            printf(&quot;i m the parent process&quot;);
}
but dont know the reason]]></description>
		<content:encoded><![CDATA[<p>happened with me too&#8230;&#8230;&#8230;added a loop before return statement to stop the prior termination of the parent process.<br />
if(pid)<br />
{     for(i=0;i&lt;20;i++)<br />
            printf(&quot;i m the parent process&quot;);<br />
}<br />
but dont know the reason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amritpreet singh</title>
		<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/#comment-3277</link>
		<dc:creator><![CDATA[amritpreet singh]]></dc:creator>
		<pubDate>Thu, 03 Jan 2013 11:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2131#comment-3277</guid>
		<description><![CDATA[studied and implemented 
#all assignment questions of first    session(i.e. system(),fork(),wait())
#all assignment questions of second session.(all exec commands )
#performed passing file-descriptor from one process to another process &amp; displayed its file contents.]]></description>
		<content:encoded><![CDATA[<p>studied and implemented<br />
#all assignment questions of first    session(i.e. system(),fork(),wait())<br />
#all assignment questions of second session.(all exec commands )<br />
#performed passing file-descriptor from one process to another process &amp; displayed its file contents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samta</title>
		<link>https://www.emblogic.com/blog/03/understanding-linux-interprocess-communication-iii-duplicate-process/#comment-3275</link>
		<dc:creator><![CDATA[samta]]></dc:creator>
		<pubDate>Wed, 02 Jan 2013 13:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2131#comment-3275</guid>
		<description><![CDATA[Implemented:::
#All the IPC classroom questions on processes..

**Issues
void main()
{
        pid_t pid;
        pid=fork();
        pid=fork();
        if(pid==0)
                printf(&quot;\nIn child process PID=%d and PPID=%d&quot;,getpid(),getppid());
        else if(pid&gt;0)
                printf(&quot;\nIn parent process PID=%d and PPID=%d&quot;,getpid(),getppid());
        else
                printf(&quot;\nHere is an error!!!&quot;);
}

The similar code which I saw in the lecture today did run properly and the shell didnt hang while in my code both the parent processes are terminating first and then the  orphan processes are hanging the shell...]]></description>
		<content:encoded><![CDATA[<p>Implemented:::<br />
#All the IPC classroom questions on processes..</p>
<p>**Issues<br />
void main()<br />
{<br />
        pid_t pid;<br />
        pid=fork();<br />
        pid=fork();<br />
        if(pid==0)<br />
                printf(&#8220;\nIn child process PID=%d and PPID=%d&#8221;,getpid(),getppid());<br />
        else if(pid&gt;0)<br />
                printf(&#8220;\nIn parent process PID=%d and PPID=%d&#8221;,getpid(),getppid());<br />
        else<br />
                printf(&#8220;\nHere is an error!!!&#8221;);<br />
}</p>
<p>The similar code which I saw in the lecture today did run properly and the shell didnt hang while in my code both the parent processes are terminating first and then the  orphan processes are hanging the shell&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
