- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SIGHUP or HUP signal
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
тАО02-04-2004 02:52 AM
тАО02-04-2004 02:52 AM
-sighup and what was happening here
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:56 AM
тАО02-04-2004 02:56 AM
Re: SIGHUP or HUP signal
Number one rule of Zombies - "You can't kill - they're already dead!"
They will eventually be reaped by the OS.
If you're ending up with loads of them, then you need to determine why & fix that. Rule two - the child should be reaped when the parent dies - else it's coded wrong.
To run something so that when the parent exits it remains, then
nohup command [args]
would be the syntax.
Rgds,
Jeff
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:57 AM
тАО02-04-2004 02:57 AM
Re: SIGHUP or HUP signal
kill it and its parents.
Not much success at that btw.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:57 AM
тАО02-04-2004 02:57 AM
Re: SIGHUP or HUP signal
Ie,
nohup cmd_name &
Will run the command in the background, and will trap the "HUP" signal so it doesn't zombie-fy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 03:02 AM
тАО02-04-2004 03:02 AM
Re: SIGHUP or HUP signal
By definition, zombies do not respond to signals. That means that hup, sighup, sigkill (-9) will have no effect. What you want to do is to nohup the process.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 03:02 AM
тАО02-04-2004 03:02 AM
Re: SIGHUP or HUP signal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 03:09 AM
тАО02-04-2004 03:09 AM
Solutionkill -1 or kill -hup (or kill -HUP) will send the hangup signal to a process. The signal's purpose is to notify a program that the connection has been terminated as in a modem hangup. Apparently Unidata doesn't handle this signal without special startup options. You can test to see whether the signal works correctly by using the kill -hup command.
Zombies as Jeff mentioned, are already dead and are caused by bad coding in the parent program. A parent is responsible for all child processes (interesting metaphor...) and must not abandon a child. It must wait until the child terminates, or passes control of the child's termination to init.
nohup is a protector, nothing else. It simply intercepts the SIGHUP signal and throws it away. This would be needed if you started a long process that ran for 5 hours and you wanted to logout and let the process run by itself. The & (background) syntax puts the program into a separate queue but as soon as the parent (typically a shell) exits, it will terminate all children with a SIGHUP. Thus, nohup process_name & will place the program into the background AND ignore the parent's exit. The background process is then assigned to init which performs the proper cleanup of a terminating child.
Bill Hassell, sysadmin