<?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: diff b/w HUP, TERM, INT signals in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428632#M71344</link>
    <description>Maaz, hi&lt;BR /&gt;&lt;BR /&gt;I'll try give you a basic summary of the signals:&lt;BR /&gt;&lt;BR /&gt;TERM - Terminate - This signal you send if you want to end a process. It allows the process to clean up nicely though, not like the -9 option (KILL) which just ends everything.&lt;BR /&gt;&lt;BR /&gt;INT - Interrupt - This is a permission which for instance can be used in an NFS environment. If a process hangs, you can interrupt it with say the Ctrl C option.&lt;BR /&gt;&lt;BR /&gt;KILL - exactly what it says. It kills a process without allowing it to clean up, meaning, end all threads, kill child processes etc. It just stops it and can leave either files or other processes in an inconsistant state.&lt;BR /&gt;&lt;BR /&gt;HUP - Hang UP - What this signal does is, when you send it to say the inetd process, it basically tells inetd to go reread it's configuration file as certain changes have been made which you have to incorporate now. The process doesn't actually stop, it just, like stated, rereads it's config.&lt;BR /&gt;&lt;BR /&gt;USR1 - This is a user defined signal. For instance, on our Tru64 systems, we use this signal to tell say the binary log daemon to go save it's current log file, archive it, and then start a new one. I imagine though it could be used for many other things, thus user defined.&lt;BR /&gt;&lt;BR /&gt;I hope this helps a little bit. If not, let me know and I'll try extend my explanations.</description>
    <pubDate>Wed, 24 Nov 2004 07:59:24 GMT</pubDate>
    <dc:creator>Paul_503</dc:creator>
    <dc:date>2004-11-24T07:59:24Z</dc:date>
    <item>
      <title>diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428629#M71341</link>
      <description>Hello Dear Experts&lt;BR /&gt;&lt;BR /&gt;what are TERM, INT, KILL, HUP, USR1 signals ??&lt;BR /&gt;and what is the diff b/w them.&lt;BR /&gt;&lt;BR /&gt;KILL signal is obvious to me, but others are not ... so plz help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help will be highly appreciated .&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2004 08:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428629#M71341</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-11-23T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428630#M71342</link>
      <description># man 7 signal&lt;BR /&gt;&lt;BR /&gt;   Signal     Value     Action   Comment&lt;BR /&gt;       -------------------------------------------------------------------------&lt;BR /&gt;       SIGHUP        1       Term    Hangup detected on controlling terminal&lt;BR /&gt;                                     or death of controlling process&lt;BR /&gt;       SIGINT        2       Term    Interrupt from keyboard&lt;BR /&gt;       SIGQUIT       3       Core    Quit from keyboard&lt;BR /&gt;       SIGILL        4       Core    Illegal Instruction&lt;BR /&gt;       SIGABRT       6       Core    Abort signal from abort(3)&lt;BR /&gt;       SIGFPE        8       Core    Floating point exception&lt;BR /&gt;       SIGKILL       9       Term    Kill signal&lt;BR /&gt;       SIGSEGV      11       Core    Invalid memory reference&lt;BR /&gt;       SIGPIPE      13       Term    Broken pipe: write to pipe with no readers&lt;BR /&gt;       SIGALRM      14       Term    Timer signal from alarm(2)&lt;BR /&gt;       SIGTERM      15       Term    Termination signal&lt;BR /&gt;       SIGUSR1   30,10,16    Term    User-defined signal 1&lt;BR /&gt;       SIGUSR2   31,12,17    Term    User-defined signal 2&lt;BR /&gt;       SIGCHLD   20,17,18    Ign     Child stopped or terminated&lt;BR /&gt;       SIGCONT   19,18,25            Continue if stopped&lt;BR /&gt;       SIGSTOP   17,19,23    Stop    Stop process&lt;BR /&gt;       SIGTSTP   18,20,24    Stop    Stop typed at tty&lt;BR /&gt;       SIGTTIN   21,21,26    Stop    tty input for background process&lt;BR /&gt;       SIGTTOU   22,22,27    Stop    tty output for background process&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are others... see the man page.&lt;BR /&gt;&lt;BR /&gt;HUP for a daemon is to reload the config.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2004 09:31:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428630#M71342</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2004-11-23T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428631#M71343</link>
      <description>Many Thanks Dear Olivier.&lt;BR /&gt;As per ur instruction i check with man page, but for  me it was a bit difficult to understand directly from the man page ... might be due to the techincal english, or at least for me might be the man page for signal is not that easy &lt;BR /&gt;&lt;BR /&gt;So anyone can plz explain only those signals which I have already asked for in the post. i.e. what are TERM, INT, KILL, HUP, USR1 signals ?? and what is the diff b/w them.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2004 07:36:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428631#M71343</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-11-24T07:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428632#M71344</link>
      <description>Maaz, hi&lt;BR /&gt;&lt;BR /&gt;I'll try give you a basic summary of the signals:&lt;BR /&gt;&lt;BR /&gt;TERM - Terminate - This signal you send if you want to end a process. It allows the process to clean up nicely though, not like the -9 option (KILL) which just ends everything.&lt;BR /&gt;&lt;BR /&gt;INT - Interrupt - This is a permission which for instance can be used in an NFS environment. If a process hangs, you can interrupt it with say the Ctrl C option.&lt;BR /&gt;&lt;BR /&gt;KILL - exactly what it says. It kills a process without allowing it to clean up, meaning, end all threads, kill child processes etc. It just stops it and can leave either files or other processes in an inconsistant state.&lt;BR /&gt;&lt;BR /&gt;HUP - Hang UP - What this signal does is, when you send it to say the inetd process, it basically tells inetd to go reread it's configuration file as certain changes have been made which you have to incorporate now. The process doesn't actually stop, it just, like stated, rereads it's config.&lt;BR /&gt;&lt;BR /&gt;USR1 - This is a user defined signal. For instance, on our Tru64 systems, we use this signal to tell say the binary log daemon to go save it's current log file, archive it, and then start a new one. I imagine though it could be used for many other things, thus user defined.&lt;BR /&gt;&lt;BR /&gt;I hope this helps a little bit. If not, let me know and I'll try extend my explanations.</description>
      <pubDate>Wed, 24 Nov 2004 07:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428632#M71344</guid>
      <dc:creator>Paul_503</dc:creator>
      <dc:date>2004-11-24T07:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428633#M71345</link>
      <description>Thanks a Million Dear Paul for such a great explanation. I m highly thankful to u.&lt;BR /&gt;&lt;BR /&gt;i jus wana know one more thing, that is how i can send the process TERM, INT, and HUP signal. i know that kill signal is given by&lt;BR /&gt;#kill -9 pid, &lt;BR /&gt;but i wana know what command is used to give TERM, INT, and HUP signals to any process.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 24 Nov 2004 21:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428633#M71345</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-11-24T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428634#M71346</link>
      <description>You can use kill to send either the numerical or the textual signal to a process id, i.e.&lt;BR /&gt;&lt;BR /&gt;kill -1 832&lt;BR /&gt;kill -HUP 832&lt;BR /&gt;&lt;BR /&gt;are equivalent.&lt;BR /&gt;&lt;BR /&gt;kill -2 832&lt;BR /&gt;kill -INT 832&lt;BR /&gt;&lt;BR /&gt;are equivalent.&lt;BR /&gt;&lt;BR /&gt;The first list, given by Oliver gives both the textual and numerical signal values.  Choose which you prefer to use, and go with it.&lt;BR /&gt;&lt;BR /&gt;Personally, I like the textual values.&lt;BR /&gt;&lt;BR /&gt;NOTE:  Sending anything the 'KILL' signal (kill -9 &lt;PID&gt;, or kill -KILL &lt;PID&gt;) should only ever be used as a last resort!  You should always start with a less harmful signal (TERM or INT or QUIT).&lt;/PID&gt;&lt;/PID&gt;</description>
      <pubDate>Wed, 24 Nov 2004 23:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428634#M71346</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-11-24T23:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428635#M71347</link>
      <description>HUP - Hang UP - What this signal does is, when you send it to say the inetd process, it basically tells inetd to go reread it's configuration file as certain changes have been made which you have to incorporate now. The process doesn't actually stop, it just, like stated, rereads it's config. &lt;BR /&gt;&lt;BR /&gt;This is true only for daemon processes. For normal application it hangs-up the terminal. It comes from the old days of the modem...&lt;BR /&gt;&lt;BR /&gt;Since there is no terminal attached to a daemon they used this signal instead of USR1 and USR2 for re-reading the daemon's configuration. It frees up a signal.</description>
      <pubDate>Thu, 25 Nov 2004 11:55:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428635#M71347</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2004-11-25T11:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w HUP, TERM, INT signals</title>
      <link>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428636#M71348</link>
      <description>Dear Stuart Browne I m highly thankful to u for the kind reply/help, and the great explanation.&lt;BR /&gt;&lt;BR /&gt;and Dear Olivier Drouin, the explanation u provided me is so precious to me, thankx a million.&lt;BR /&gt;&lt;BR /&gt;once again Many Thanks for the continous support.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Thu, 25 Nov 2004 12:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/diff-b-w-hup-term-int-signals/m-p/3428636#M71348</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-11-25T12:59:29Z</dc:date>
    </item>
  </channel>
</rss>

