<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Question about an untrappable exit signal' | Pragmatic Forums</title>
    <link>http://fora.pragprog.com/forums/27/topics/180</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Question about an untrappable exit signal posted by Andrew Yates @ Wed, 09 Jan 2008 01:09:51 -0000</title>
      <description>&lt;p&gt;exit/1 exits the calling process whereas exit/2 sends the exit signal without exiting the process in which exit/2 was called&lt;/p&gt;</description>
      <pubDate>Wed, 09 Jan 2008 01:09:51 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:27:180:2148</guid>
      <author>Andrew Yates</author>
      <link>http://fora.pragprog.com/forums/27/topics/180</link>
    </item>
    <item>
      <title>Question about an untrappable exit signal posted by Jahyun Oh @ Wed, 19 Dec 2007 11:23:47 -0000</title>
      <description>&lt;p&gt;Hello.&lt;/p&gt;


	&lt;p&gt;I have a question about an untrappable exit signal.&lt;/p&gt;


	&lt;p&gt;On the page 163 of &lt;strong&gt;Programming Erlang&lt;/strong&gt;, the book describes :&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;If the reason is given as kill, then an untrappable exit signal will be sent. An untrappable exit signal will always kill the process it is sent to, even if it is a system process.&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;I read it and thought that the exit signal by the exit reason &amp;#8216;kill&amp;#8217; is never trapped.&lt;/p&gt;


	&lt;p&gt;I wanted to test this work between the processes. So, I made a link between a normal process &amp;#8216;A&amp;#8217; and a system process &amp;#8216;B&amp;#8217;.&lt;/p&gt;


And I got two results in the test :
	&lt;ul&gt;
	&lt;li&gt;When &amp;#8216;A&amp;#8217; called exit(kill), &amp;#8216;B&amp;#8217; trapped the exit signal.&lt;/li&gt;
		&lt;li&gt;When &amp;#8216;A&amp;#8217; called exit(B, kill), &amp;#8216;B&amp;#8217; dead.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;edemo1 and edemo2 that were demo programs of &amp;#8220;Trapping Exit signals (Advaned)&amp;#8221; of the &lt;strong&gt;Programming Erlang&lt;/strong&gt; showed the same results, but the explaination about the result of demo programs wasn&amp;#8217;t detailed.&lt;/p&gt;


	&lt;p&gt;Why was the exit signal by calling exit(kill) trapped?&lt;br /&gt;(Is there some differences between exit/1 and exit/2?)&lt;/p&gt;


	&lt;p&gt;/jahyun&lt;/p&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:23:47 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:27:180:2047</guid>
      <author>Jahyun Oh</author>
      <link>http://fora.pragprog.com/forums/27/topics/180</link>
    </item>
  </channel>
</rss>
