<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; shyam.singh</title>
	<atom:link href="https://www.emblogic.com/blog/author/shyam-singh/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>linux_environment..</title>
		<link>https://www.emblogic.com/blog/12/linux_environment/</link>
		<comments>https://www.emblogic.com/blog/12/linux_environment/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 13:45:17 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1372</guid>
		<description><![CDATA[i have used the functions-&#62;getenv,putenv,openlog,closelog,syslog,setlogmaskenviron,&#8230; working on ./dev/tty.]]></description>
				<content:encoded><![CDATA[<p>i have used the functions-&gt;getenv,putenv,openlog,closelog,syslog,setlogmaskenviron,&#8230;</p>
<p>working on ./dev/tty.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/linux_environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>parallel_port driver status..</title>
		<link>https://www.emblogic.com/blog/12/parallel_port-driver-status/</link>
		<comments>https://www.emblogic.com/blog/12/parallel_port-driver-status/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 08:47:32 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Parallel Port Driver]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1352</guid>
		<description><![CDATA[sir, i have completed the parallel port driver in NIBBLE mode&#8230;&#8230;But not by handshaking&#8230;.(by using delay). in handshaking our status is -&#62;control have reached from peripheral to host but we are not able to receive the control from host to &#8230; <a href="https://www.emblogic.com/blog/12/parallel_port-driver-status/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>sir, i have completed the parallel port driver in NIBBLE mode&#8230;&#8230;But not by handshaking&#8230;.(by using delay).</p>
<p>in handshaking our status is -&gt;control have reached from peripheral to host but we are not able to receive the control from host to peripheral(for handshaking)&#8230;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/parallel_port-driver-status/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>handshaking problem..</title>
		<link>https://www.emblogic.com/blog/12/handshaking-problem/</link>
		<comments>https://www.emblogic.com/blog/12/handshaking-problem/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 08:30:31 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Parallel Port Driver]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1345</guid>
		<description><![CDATA[in Nibble mode&#8230; -&#62; can we use a single bit in hand_shaking in the parallel port driver..? -&#62; which bit of the control register should i use to handshake-&#62;1.strobe bit, 2.autofeed bit. Please tell me the procedure of handshaking in &#8230; <a href="https://www.emblogic.com/blog/12/handshaking-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>in Nibble mode&#8230;</p>
<p>-&gt; can we use a single bit in hand_shaking in the parallel port driver..?</p>
<p>-&gt; which bit of the control register should i use to handshake-&gt;1.strobe bit, 2.autofeed bit.</p>
<p>Please tell me the procedure of handshaking in nibble mode of parallel port driver&#8230;.?</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/handshaking-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KERNEL_TIMER&#8230;&#8230;.</title>
		<link>https://www.emblogic.com/blog/11/kernel_timer/</link>
		<comments>https://www.emblogic.com/blog/11/kernel_timer/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 09:25:42 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>
		<category><![CDATA[Device Drivers]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1283</guid>
		<description><![CDATA[In my lkm,when i printed the value of &#8220;HZ&#8221;. It comes out 1000. But the actual value defined in the header  #include&#60;asm/param.h&#62;  is 100. why..?]]></description>
				<content:encoded><![CDATA[<p>In my lkm,when i printed the value of &#8220;HZ&#8221;.</p>
<p>It comes out 1000.</p>
<p>But the actual value defined in the header  #include&lt;asm/param.h&gt;  is 100.</p>
<p>why..?</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/kernel_timer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ioctl..</title>
		<link>https://www.emblogic.com/blog/11/ioctl/</link>
		<comments>https://www.emblogic.com/blog/11/ioctl/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 04:56:24 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[char driver]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1268</guid>
		<description><![CDATA[In the ioctl function at driver level&#8230;&#8230;.., the switch(cmd) statement have &#8216;cmd&#8217; as the argument but we can see cmd is of &#8216;unsigned int&#8217; type&#8230; i want to ask how the switch function perform case matching&#8230;. switch(cmd) { case IOSQSET: &#8230; <a href="https://www.emblogic.com/blog/11/ioctl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In the ioctl function at driver level&#8230;&#8230;..,<br />
the switch(cmd) statement have &#8216;cmd&#8217; as the argument but we can see cmd is of &#8216;unsigned int&#8217; type&#8230;<br />
i want to ask how the switch function perform case matching&#8230;.<br />
switch(cmd)<br />
{<br />
case IOSQSET:<br />
case IOSQUANTUM:<br />
because after &#8216;case&#8217; we have written a string..and &#8216;cmd&#8217; is int type&#8230;..how?</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/ioctl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>char_driver status&#8230;</title>
		<link>https://www.emblogic.com/blog/11/char_driver-status/</link>
		<comments>https://www.emblogic.com/blog/11/char_driver-status/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:05:34 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1212</guid>
		<description><![CDATA[sir, i have completed read &#38; write in single as well as multi quantum.]]></description>
				<content:encoded><![CDATA[<p>sir, i have completed read &amp; write  in single as well as multi quantum.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/11/char_driver-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>status of char driver</title>
		<link>https://www.emblogic.com/blog/10/status-of-char-driver/</link>
		<comments>https://www.emblogic.com/blog/10/status-of-char-driver/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 07:43:35 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1116</guid>
		<description><![CDATA[i have successfully completed scull trim, scull follow, and write complete using single quantum and now working on multiple quantum]]></description>
				<content:encoded><![CDATA[<p>i have successfully completed<br />
scull trim,<br />
scull follow,<br />
and  write complete using single quantum<br />
and now working on multiple quantum</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/status-of-char-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>character_driver</title>
		<link>https://www.emblogic.com/blog/10/character_driver/</link>
		<comments>https://www.emblogic.com/blog/10/character_driver/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 10:12:55 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1009</guid>
		<description><![CDATA[local_scull_dev_ptr=container_of(pointer,container type,cdev); anyone plz tell me the internal functioning of the this macro&#8230; 1.what i mean to say is- how the control moves&#8230; 2.we directly take the third argument as &#8216;cdev&#8217;&#8230; but we know cdev resides in struct scull_dev so &#8230; <a href="https://www.emblogic.com/blog/10/character_driver/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>local_scull_dev_ptr=container_of(pointer,container type,cdev);</p>
<p>anyone plz tell me the internal functioning of the this macro&#8230;</p>
<p>1.what i mean to say is- how the control moves&#8230;</p>
<p>2.we directly take the third argument as &#8216;cdev&#8217;&#8230;</p>
<p>but we know cdev resides in struct scull_dev</p>
<p>so we should take &#8216;local_scull_dev_ptr-&gt;cdev&#8217; as a third argument&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/character_driver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>blog_update..</title>
		<link>https://www.emblogic.com/blog/10/blog_update/</link>
		<comments>https://www.emblogic.com/blog/10/blog_update/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 04:57:23 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=925</guid>
		<description><![CDATA[i have completed my registration &#38;unregistration of multiple devices with the use of a fun scull_setup_cdev&#8230;&#8230;.]]></description>
				<content:encoded><![CDATA[<p>i have completed my registration &amp;unregistration of multiple devices with the use of a fun scull_setup_cdev&#8230;&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/blog_update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>char driver problem&#8230;</title>
		<link>https://www.emblogic.com/blog/10/char-driver-problem/</link>
		<comments>https://www.emblogic.com/blog/10/char-driver-problem/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 07:19:46 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=884</guid>
		<description><![CDATA[&#160; &#160; The code during registration:- scull_dev_ptr=kmalloc(NO_OF_DEVICES*sizeof(struct scull_dev),GFP_KERNEL); memset(scull_dev_ptr,&#8221;,sizeof(struct scull_dev)); for(loopv=0;loopv&#60;NO_OF_DEVICES;loopv++) { ldev=MKDEV(scull_major,scull_minor); scull_minor=MINOR(ldev); scull_dev_ptr[loopv].cdev_var.dev=ldev; scull_dev_ptr[loopv].cdev_var.owner=THIS_MODULE; cdev_init(&#38;scull_dev_ptr[loopv].cdev_var,&#38;fops); ret_val_2=cdev_add(&#38;scull_dev_ptr[loopv].cdev_var,ldev,1); if(ret_val_2&#60;0) { #ifdef DEBUG printk(KERN_ERR &#8220;cdev_add failed&#8221;); #endif goto out; } scull_minor++; #ifdef DEBUG printk(KERN_INFO &#8220;minor=%d&#8221;,scull_minor); #endif } The code during unregisteration:- &#8230; <a href="https://www.emblogic.com/blog/10/char-driver-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The code during registration:-</p>
<p>scull_dev_ptr=kmalloc(NO_OF_DEVICES*sizeof(struct scull_dev),GFP_KERNEL);<br />
memset(scull_dev_ptr,&#8221;,sizeof(struct scull_dev));<br />
for(loopv=0;loopv&lt;NO_OF_DEVICES;loopv++)<br />
{<br />
ldev=MKDEV(scull_major,scull_minor);<br />
scull_minor=MINOR(ldev);<br />
scull_dev_ptr[loopv].cdev_var.dev=ldev;<br />
scull_dev_ptr[loopv].cdev_var.owner=THIS_MODULE;<br />
cdev_init(&amp;scull_dev_ptr[loopv].cdev_var,&amp;fops);<br />
ret_val_2=cdev_add(&amp;scull_dev_ptr[loopv].cdev_var,ldev,1);<br />
if(ret_val_2&lt;0)<br />
{<br />
#ifdef DEBUG<br />
printk(KERN_ERR &#8220;cdev_add failed&#8221;);<br />
#endif<br />
goto out;<br />
}<br />
scull_minor++;<br />
#ifdef DEBUG<br />
printk(KERN_INFO &#8220;minor=%d&#8221;,scull_minor);<br />
#endif<br />
}</p>
<p>The code during unregisteration:-</p>
<p>static void __exit cleanup_fun(void)<br />
{<br />
int loopv;<br />
dev=MKDEV(scull_major,scull_minor);<br />
printk(KERN_INFO &#8220;\nbegin: %s&#8221;,__func__);<br />
for(loopv=0;loopv&lt;NO_OF_DEVICES;LOOPV++)</p>
<p>cdev_del(&amp;scull_dev_ptr[loopv].cdev_var);<br />
kfree(scull_dev_ptr);<br />
unregister_chrdev_region(dev,NO_OF_DEVICES);<br />
#ifdef DEBUG<br />
printk(KERN_INFO&#8221;bye for now&#8221;);</p>
<p>printk(KERN_INFO &#8220;name=%s,pid=%d&#8221;,current-&gt;comm,current-&gt;pid);<br />
printk(KERN_INFO &#8220;end: %s\n&#8221;,__func__);<br />
#endif<br />
}</p>
<p>code works well..<br />
-make (successful).<br />
-it register my driver.(insmod successful).</p>
<p>-driver is present in (/proc/devices).<br />
-rmmod also successful..</p>
<p>-driver is removed from(/proc/devices ).</p>
<p>But the problem is that &#8220;after rmmod &amp; dmesg it leaves a message(10-15 lines)..<br />
hw can these lines be removed &#8230;.<br />
thegarbage lines are&#8230;&#8230;<br />
begin: initilization_fun<br />
[ 4105.329806] major=247<br />
[ 4105.329810] minor=1<br />
[ 4105.329813] minor=2<br />
[ 4105.329816] minor=3<br />
[ 4105.329818] minor=4<br />
[ 4105.329821] minor=5<br />
[ 4105.329823] integer=11<br />
[ 4105.329825] long integer=1111<br />
[ 4105.329828] string=hello to the world of linux<br />
[ 4105.329831] hello kernel<br />
[ 4105.329833] name=insmod,4524<br />
[ 4105.329836] end: initilization_fun<br />
[ 4109.074416]<br />
[ 4109.074418] begin: cleanup_fun<br />
[ 4109.074430] &#8212;&#8212;&#8212;&#8212;[ cut here ]&#8212;&#8212;&#8212;&#8212;<br />
[ 4109.074441] WARNING: at lib/kobject.c:595 kobject_put+0&#215;27/0x3c()<br />
[ 4109.074445] Hardware name: System Product Name<br />
[ 4109.074448] kobject: &#8216;(null)&#8217; (ca22e574): is not initialized, yet kobject_put() is being called.<br />
[ 4109.074452] Modules linked in: lkm(-) usb_storage fuse ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat bridge stp llc deflate zlib_deflate ctr camellia cast5 rmd160 crypto_null ccm serpent blowfish twofish twofish_common ecb xcbc cbc sha256_generic sha512_generic des_generic aes_i586 aes_generic ah6 ah4 esp6 esp4 xfrm4_mode_beet xfrm4_tunnel tunnel4 xfrm4_mode_tunnel xfrm4_mode_transport xfrm6_mode_transport xfrm6_mode_ro xfrm6_mode_beet xfrm6_mode_tunnel ipcomp ipcomp6 xfrm_ipcomp xfrm6_tunnel tunnel6 af_key sunrpc cpufreq_ondemand acpi_cpufreq mperf capi capifs kernelcapi ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 vfat fat kvm_intel kvm uinput snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device i2c_i801 snd_pcm iTCO_wdt iTCO_vendor_support snd_timer snd soundcore snd_page_alloc ppdev parport_pc parport asus_atk0110 r8169 mii microcode i915 drm_kms_helper drm i2c_algo_bit i2c_core video output [last unloaded: lkm]<br />
[ 4109.074568] Pid: 4532, comm: rmmod Tainted: G W 2.6.35.6-45.fc14.i686 #1<br />
[ 4109.074572] Call Trace:<br />
[ 4109.074581] [] warn_slowpath_common+0x6a/0x7f<br />
[ 4109.074587] [] ? kobject_put+0&#215;27/0x3c<br />
[ 4109.074594] [] warn_slowpath_fmt+0x2b/0x2f<br />
[ 4109.074599] [] kobject_put+0&#215;27/0x3c<br />
[ 4109.074606] [] cdev_del+0&#215;22/0&#215;25<br />
[ 4109.074613] [] cleanup_fun+0&#215;39/0x8f [lkm]<br />
[ 4109.074619] [] sys_delete_module+0&#215;181/0x1de<br />
[ 4109.074627] [] ? audit_syscall_entry+0&#215;116/0&#215;138<br />
[ 4109.074634] [] ? syscall_trace_enter+0&#215;104/0&#215;119<br />
[ 4109.074641] [] syscall_call+0&#215;7/0xb<br />
[ 4109.074646] &#8212;[ end trace 6800ebedf54ef408 ]&#8212;<br />
[ 4109.074649] bye for now<br />
[ 4109.074652] name=rmmod,4532<br />
[ 4109.074655] end: cleanup_fun</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/char-driver-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>datatype&#8230;.</title>
		<link>https://www.emblogic.com/blog/09/datatype/</link>
		<comments>https://www.emblogic.com/blog/09/datatype/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 04:52:46 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=882</guid>
		<description><![CDATA[will anyone suggest me the difference b/w- int flag; const int flag; static int flag;]]></description>
				<content:encoded><![CDATA[<p>will anyone suggest me the difference b/w-<br />
int    flag;<br />
const int  flag;<br />
static int  flag;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/09/datatype/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>signal problems:</title>
		<link>https://www.emblogic.com/blog/09/signal-problems/</link>
		<comments>https://www.emblogic.com/blog/09/signal-problems/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 13:01:46 +0000</pubDate>
		<dc:creator><![CDATA[shyam.singh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=820</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #include&#60;unistd.h&#62; #include&#60;sys/types.h&#62; #include&#60;signal.h&#62; void outch(int sig) { printf(&#8220;outch:i got a signal no.=%d\n&#8221;,sig); sleep(5); printf(&#8220;handler for signal no.=%d has ended\n&#8221;,sig); } int main() { struct sigaction act,act1; act.sa_handler=outch; sigemptyset(&#38;act.sa_mask); sigaddset(&#38;act.sa_mask,SIGQUIT); sigaction(SIGINT,&#38;act,0); sigaction(SIGQUIT,&#38;act,0); act1.sa_handler=outch; sigemptyset(&#38;act1.sa_mask); sigaddset(&#38;act1.sa_mask,SIGTSTP); sigprocmask(SIG_BLOCK,&#38;act1.sa_mask,&#38;act.sa_mask); while(1) { printf(&#8220;hello\n&#8221;); sleep(1); &#8230; <a href="https://www.emblogic.com/blog/09/signal-problems/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;<br />
#include&lt;unistd.h&gt;<br />
#include&lt;sys/types.h&gt;<br />
#include&lt;signal.h&gt;</p>
<p>void outch(int sig)<br />
{<br />
printf(&#8220;outch:i got a signal no.=%d\n&#8221;,sig);<br />
sleep(5);</p>
<p>printf(&#8220;handler for signal no.=%d has ended\n&#8221;,sig);<br />
}</p>
<p>int main()<br />
{<br />
struct sigaction act,act1;<br />
act.sa_handler=outch;<br />
sigemptyset(&amp;act.sa_mask);<br />
sigaddset(&amp;act.sa_mask,SIGQUIT);<br />
sigaction(SIGINT,&amp;act,0);<br />
sigaction(SIGQUIT,&amp;act,0);</p>
<p>act1.sa_handler=outch;<br />
sigemptyset(&amp;act1.sa_mask);</p>
<p>sigaddset(&amp;act1.sa_mask,SIGTSTP);</p>
<p>sigprocmask(SIG_BLOCK,&amp;act1.sa_mask,&amp;act.sa_mask);</p>
<p>while(1)<br />
{<br />
printf(&#8220;hello\n&#8221;);<br />
sleep(1);<br />
}<br />
return 0;<br />
}<br />
in the above prog. SIG_BLOCK is not doing union of old &amp; new mask.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/09/signal-problems/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
