- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- diff b/w HUP, TERM, INT signals
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 12:53 AM
тАО11-23-2004 12:53 AM
what are TERM, INT, KILL, HUP, USR1 signals ??
and what is the diff b/w them.
KILL signal is obvious to me, but others are not ... so plz help
Any help will be highly appreciated .
Thanks in advance
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 01:31 AM
тАО11-23-2004 01:31 AM
Re: diff b/w HUP, TERM, INT signals
Signal Value Action Comment
-------------------------------------------------------------------------
SIGHUP 1 Term Hangup detected on controlling terminal
or death of controlling process
SIGINT 2 Term Interrupt from keyboard
SIGQUIT 3 Core Quit from keyboard
SIGILL 4 Core Illegal Instruction
SIGABRT 6 Core Abort signal from abort(3)
SIGFPE 8 Core Floating point exception
SIGKILL 9 Term Kill signal
SIGSEGV 11 Core Invalid memory reference
SIGPIPE 13 Term Broken pipe: write to pipe with no readers
SIGALRM 14 Term Timer signal from alarm(2)
SIGTERM 15 Term Termination signal
SIGUSR1 30,10,16 Term User-defined signal 1
SIGUSR2 31,12,17 Term User-defined signal 2
SIGCHLD 20,17,18 Ign Child stopped or terminated
SIGCONT 19,18,25 Continue if stopped
SIGSTOP 17,19,23 Stop Stop process
SIGTSTP 18,20,24 Stop Stop typed at tty
SIGTTIN 21,21,26 Stop tty input for background process
SIGTTOU 22,22,27 Stop tty output for background process
There are others... see the man page.
HUP for a daemon is to reload the config.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 11:36 PM
тАО11-23-2004 11:36 PM
Re: diff b/w HUP, TERM, INT signals
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
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.
Thanks
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 11:59 PM
тАО11-23-2004 11:59 PM
SolutionI'll try give you a basic summary of the signals:
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.
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.
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.
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.
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.
I hope this helps a little bit. If not, let me know and I'll try extend my explanations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2004 01:45 PM
тАО11-24-2004 01:45 PM
Re: diff b/w HUP, TERM, INT signals
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
#kill -9 pid,
but i wana know what command is used to give TERM, INT, and HUP signals to any process.
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2004 03:08 PM
тАО11-24-2004 03:08 PM
Re: diff b/w HUP, TERM, INT signals
kill -1 832
kill -HUP 832
are equivalent.
kill -2 832
kill -INT 832
are equivalent.
The first list, given by Oliver gives both the textual and numerical signal values. Choose which you prefer to use, and go with it.
Personally, I like the textual values.
NOTE: Sending anything the 'KILL' signal (kill -9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2004 03:55 AM
тАО11-25-2004 03:55 AM
Re: diff b/w HUP, TERM, INT signals
This is true only for daemon processes. For normal application it hangs-up the terminal. It comes from the old days of the modem...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2004 04:59 AM
тАО11-25-2004 04:59 AM
Re: diff b/w HUP, TERM, INT signals
and Dear Olivier Drouin, the explanation u provided me is so precious to me, thankx a million.
once again Many Thanks for the continous support.
Regards
Maaz