<?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>《解疑sigsuspend》的评论</title>
	<atom:link href="http://tonybai.com/2005/09/22/understand-sigsuspend/feed/" rel="self" type="application/rss+xml" />
	<link>https://tonybai.com/2005/09/22/understand-sigsuspend/</link>
	<description>一个程序员的心路历程</description>
	<lastBuildDate>Fri, 17 Apr 2026 15:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：lester</title>
		<link>https://tonybai.com/2005/09/22/understand-sigsuspend/#comment-33</link>
		<dc:creator>lester</dc:creator>
		<pubDate>Tue, 14 Jun 2011 15:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2005/09/22/%e8%a7%a3%e7%96%91sigsuspend/#comment-33</guid>
		<description>学习了，这个东西搞的我一头雾水，谢谢</description>
		<content:encoded><![CDATA[<p>学习了，这个东西搞的我一头雾水，谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jieao111</title>
		<link>https://tonybai.com/2005/09/22/understand-sigsuspend/#comment-34</link>
		<dc:creator>jieao111</dc:creator>
		<pubDate>Sat, 08 Aug 2009 21:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2005/09/22/%e8%a7%a3%e7%96%91sigsuspend/#comment-34</guid>
		<description>http://bbs3.chinaunix.net/thread-1510740-1-1.html</description>
		<content:encoded><![CDATA[<p><a href="http://bbs3.chinaunix.net/thread-1510740-1-1.html" rel="nofollow">http://bbs3.chinaunix.net/thread-1510740-1-1.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bsder</title>
		<link>https://tonybai.com/2005/09/22/understand-sigsuspend/#comment-35</link>
		<dc:creator>bsder</dc:creator>
		<pubDate>Sun, 19 Jul 2009 18:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/2005/09/22/%e8%a7%a3%e7%96%91sigsuspend/#comment-35</guid>
		<description>在这里SIGINT打出来是因为在SIGINT信号处理函数里，由操作系统加入正在被递送的信号，即SIGINT。

如：
#include &quot;apue.h&quot;
static void sig_int(int signo) {
    pr_mask(&quot;\nin sig_int: &quot;);
    return;
}
int main(void) {
    sigset_t   newmask, oldmask, zeromask;

    if (signal(SIGINT, sig_int) == SIG_ERR)
        err_sys(&quot;signal(SIGINT) error&quot;);
    pause();
    return 0;
}
如此也出现
^C
in sig_int: SIGINT</description>
		<content:encoded><![CDATA[<p>在这里SIGINT打出来是因为在SIGINT信号处理函数里，由操作系统加入正在被递送的信号，即SIGINT。</p>
<p>如：<br />
#include &quot;apue.h&quot;<br />
static void sig_int(int signo) {<br />
    pr_mask(&quot;\nin sig_int: &quot;);<br />
    return;<br />
}<br />
int main(void) {<br />
    sigset_t   newmask, oldmask, zeromask;</p>
<p>    if (signal(SIGINT, sig_int) == SIG_ERR)<br />
        err_sys(&quot;signal(SIGINT) error&quot;);<br />
    pause();<br />
    return 0;<br />
}<br />
如此也出现<br />
^C<br />
in sig_int: SIGINT</p>
]]></content:encoded>
	</item>
</channel>
</rss>
