<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SIGNALS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680933#M903676</link>
    <description>That was helpful&lt;BR /&gt;Now a few signals have the default action as terminate while a few have terminate with core file.&lt;BR /&gt;For termination the _exit is called.&lt;BR /&gt;Which function is called to generate the core file?&lt;BR /&gt;&lt;BR /&gt;Also what exactly happens when signals are received whose default action is to ignore the signal and whose action is set to SIG_IGN as there is a slight difference in the two. eg SIGCHLD.&lt;BR /&gt;&lt;BR /&gt;Kapil&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Mar 2002 03:58:52 GMT</pubDate>
    <dc:creator>Kapil_2</dc:creator>
    <dc:date>2002-03-18T03:58:52Z</dc:date>
    <item>
      <title>SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680928#M903671</link>
      <description>How do we find out the function which is the default action (SIG_DFL) for a signal.&lt;BR /&gt;eg abort is the function which is called by default for signal SIGABRT.&lt;BR /&gt;How do we find it out for the other signals&lt;BR /&gt;&lt;BR /&gt;Kapil&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2002 03:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680928#M903671</guid>
      <dc:creator>Kapil_2</dc:creator>
      <dc:date>2002-03-12T03:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680929#M903672</link>
      <description>Maybe this document will help you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90697/B2355-90697_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90697/00/00/76-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90697/00/00/76-toc.html&amp;amp;searchterms=signal&amp;amp;queryid=20020311-195914" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90697/B2355-90697_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90697/00/00/76-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90697/00/00/76-toc.html&amp;amp;searchterms=signal&amp;amp;queryid=20020311-195914&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or you can man the signal for information.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kenny.</description>
      <pubDate>Tue, 12 Mar 2002 03:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680929#M903672</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2002-03-12T03:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680930#M903673</link>
      <description>Run "man 5 signal" to view the signal(5) man page.  It has a table containing that information.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 12 Mar 2002 10:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680930#M903673</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-03-12T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680931#M903674</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the command:  kill -l lists you the signals, and to find the explanation for the signals, use the manpage:&lt;BR /&gt;man 5 signal&lt;BR /&gt;you will find a table with all signals and explanation for them here.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Tue, 12 Mar 2002 10:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680931#M903674</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-03-12T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680932#M903675</link>
      <description>You can also enter stty -a to see what keyboard patterns perform particular functions.&lt;BR /&gt;&lt;BR /&gt;You can assign new values to these also&lt;BR /&gt;&lt;BR /&gt;stty &lt;SIGNAL&gt; &lt;KEYSTROKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/KEYSTROKE&gt;&lt;/SIGNAL&gt;</description>
      <pubDate>Tue, 12 Mar 2002 11:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680932#M903675</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-03-12T11:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680933#M903676</link>
      <description>That was helpful&lt;BR /&gt;Now a few signals have the default action as terminate while a few have terminate with core file.&lt;BR /&gt;For termination the _exit is called.&lt;BR /&gt;Which function is called to generate the core file?&lt;BR /&gt;&lt;BR /&gt;Also what exactly happens when signals are received whose default action is to ignore the signal and whose action is set to SIG_IGN as there is a slight difference in the two. eg SIGCHLD.&lt;BR /&gt;&lt;BR /&gt;Kapil&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Mar 2002 03:58:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680933#M903676</guid>
      <dc:creator>Kapil_2</dc:creator>
      <dc:date>2002-03-18T03:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680934#M903677</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;since you mention SIGCHLD, it really is different from most of the rest:&lt;BR /&gt;usually if a process starts a child process (system-call "fork"), and then (later on) the child process exits, this child process sends signal SGICHLD to its parent, in case the parent waits for it (system-call "wait"). The child-process in tunr waits for its parent to receive that signal (and get pu-time afterwards) and then vanishes (until then its in state "zombie", which is NOT bad).&lt;BR /&gt;This is the default behaviour, and hence different from SIG_DFLT (read: the parent does NOT die).&lt;BR /&gt;But if the parent (the to-be-parent) ignores the signal SIGCHLD *before* forking the the child, then the signal SIGCHLD is NOT sent from child to parent, and hence the child does enter the state "zombie". But then, that way the parent cannot "wait" for the child's exit!&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Mon, 18 Mar 2002 17:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680934#M903677</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2002-03-18T17:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680935#M903678</link>
      <description>Hi Wodisch&lt;BR /&gt;So in the default action(ignore the signal) of SIGCHLD, it is still delivered to the parent(only when it enters the wait system call)?&lt;BR /&gt;&lt;BR /&gt;Kapil&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 13:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680935#M903678</guid>
      <dc:creator>Kapil_2</dc:creator>
      <dc:date>2002-04-18T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680936#M903679</link>
      <description>The exit(2) man page describes what happens in this case:&lt;BR /&gt;&lt;BR /&gt;"If the parent process of the calling process is not executing a wait(), wait3(), or waitpid(), and does not have SIGCLD set to SIG_IGN, the calling process is transformed into a zombie process. A zombie process is a process that only occupies a slot in the process table. It has no other space allocated either in user or kernel space."&lt;BR /&gt;&lt;BR /&gt;And from signal(5):&lt;BR /&gt;&lt;BR /&gt;"Setting the action for SIGCLD to SIG_IGN in a parent process prevents exiting children of the calling process from creating a zombie process. If the parent process executes the wait() function, the calling process blocks until all of the child processes of the calling processes terminate. The wait() function then returns a value of -1 with errno set to ECHILD (see wait(2) )."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, if a parent is ignoring SIGCLD and not wait()ing for its children then they simply die without entering the zombie state and the parent will never be able to receive the status information.  The SIGCLD signal is still delivered, but is ignored.&lt;BR /&gt;&lt;BR /&gt;Put another way, a parent process can only receive status information from dying children if it either:&lt;BR /&gt;&lt;BR /&gt;1. Installs a handler for SIGCHLD that calls one of the wait*() system calls upon receipt of the signal.&lt;BR /&gt;&lt;BR /&gt;2. Blocks in one of the wait*() system calls until the child dies.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this makes sense.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 13:59:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680936#M903679</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-04-18T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680937#M903680</link>
      <description>Hi Steven,&lt;BR /&gt;How does the child know if the SIGCHLD in the parent is set to default or SIG_IGN, which would help it remain zombie or not?&lt;BR /&gt;Does the wait() system call get the status of the process after getting the SIGCHLD from the child or does it scan the process table for zombie entries?&lt;BR /&gt;&lt;BR /&gt;Kapil&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2002 13:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680937#M903680</guid>
      <dc:creator>Kapil_2</dc:creator>
      <dc:date>2002-04-22T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: SIGNALS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680938#M903681</link>
      <description>&amp;gt;&amp;gt;How does the child know if the SIGCHLD in the parent is set to default or SIG_IGN, which would help it remain zombie or not? &lt;BR /&gt;&lt;BR /&gt;This is handled by the kernel during its processing of the exit() system call in the child.  The child does not 'know' if the parent is ignoring SIGCHLD or not.  &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Does the wait() system call get the status of the process after getting the SIGCHLD from the child or does it scan the process table for zombie entries? &lt;BR /&gt;&lt;BR /&gt;Yes, the wait() system call simply returns the exit status of the zombie child and allows its entry to be removed from the process table.  If the parent does not call wait() after receiving a SIGCHLD then the child will remain a zombie as long as the parent lives.  This I would call a bug in the parent code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 22 Apr 2002 18:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/signals/m-p/2680938#M903681</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-04-22T18:11:18Z</dc:date>
    </item>
  </channel>
</rss>

