<?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: signals</title>
	<atom:link href="https://www.emblogic.com/blog/07/signals-3/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/07/signals-3/</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: hemant.kumar</title>
		<link>https://www.emblogic.com/blog/07/signals-3/#comment-1024</link>
		<dc:creator><![CDATA[hemant.kumar]]></dc:creator>
		<pubDate>Sun, 22 Jul 2012 08:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=4000#comment-1024</guid>
		<description><![CDATA[(void) signal(SIGINT,SIG_DFL);
(void)signal(SIGINT,SIG_IGN);

try this..

here your signal(SIGINT) will be ignored ..
becuse you have declared it after the SIG_DFL]]></description>
		<content:encoded><![CDATA[<p>(void) signal(SIGINT,SIG_DFL);<br />
(void)signal(SIGINT,SIG_IGN);</p>
<p>try this..</p>
<p>here your signal(SIGINT) will be ignored ..<br />
becuse you have declared it after the SIG_DFL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yashvardhan</title>
		<link>https://www.emblogic.com/blog/07/signals-3/#comment-1007</link>
		<dc:creator><![CDATA[yashvardhan]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 18:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=4000#comment-1007</guid>
		<description><![CDATA[Hi Akash,
No, there is nothing wrong with the code. It is the expected behaviour. 
See when you will press ctrl + c for the first time, it will call your signal handler, and it will print the first statement and then the execution moves to next statement and there you are re-registering the behavior with the kernel for SIGINT (SIG_IGN)and then it will move  to the next statement where you have registered it again. So your current handler is SIG_DFL which is registered with the kernel. So when you press ctrl+c for the second time, current handler is SIG_DFL, so the process will be terminated NOT IGNORED.]]></description>
		<content:encoded><![CDATA[<p>Hi Akash,<br />
No, there is nothing wrong with the code. It is the expected behaviour.<br />
See when you will press ctrl + c for the first time, it will call your signal handler, and it will print the first statement and then the execution moves to next statement and there you are re-registering the behavior with the kernel for SIGINT (SIG_IGN)and then it will move  to the next statement where you have registered it again. So your current handler is SIG_DFL which is registered with the kernel. So when you press ctrl+c for the second time, current handler is SIG_DFL, so the process will be terminated NOT IGNORED.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
