- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Questions about Kill -HUP
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
Forums
Discussions
Discussions
Discussions
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
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
05-16-2001 02:10 PM
05-16-2001 02:10 PM
I was hoping that someone could clear up a few things for me. I've written a security script that will allow certain users only 1 concurrent login. I can already forsee problems with users being logged on somewhere else and not knowing it. My question is this: If I have to kill these existing sessions (just posix shells), will a kill -HUP gracefully exit any child processes that may be running. I know the shell won't respond to a kill -15, and I don't want to use a kill -9. What exectly does a kill -HUP do (as opposed to a kill -15)? Is there a more correct way of terminating users? Thank you for all your help.
Jared
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2001 02:30 PM
05-16-2001 02:30 PM
Re: Questions about Kill -HUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2001 02:31 PM
05-16-2001 02:31 PM
SolutionWithout try to sound too smug, a kill -HUP does what ever it's told to do. Specifically,
if a process has a signal handler (or in the case of the shell a trap statement) it takes
whatever action that is coded upon receipt of the particular signal.
You could have one response to a SIGHUP and another to a SIGTERM (15). You can also instruct the process (or shell) to ignore certain signals. You should man sh and carefully examine the trap section.
One thing you should also be aware of is that you are not guarenteed to be sent a hangup signal. For example, if using a serial terminal or modem, if it's not properly wired and configured then the system has no idea that the user has turned off the device.
Hope this gets you started, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2001 02:44 PM
05-16-2001 02:44 PM
Re: Questions about Kill -HUP
This gives every opportunity for a clean departure, but ensures that any process responding to signals will, in fact, go away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2001 02:57 PM
05-16-2001 02:57 PM
Re: Questions about Kill -HUP
I assume by the name, a kill -18 is intended to stop the child processes (if there is a trap setup for it).
Are there any signals (besides 9) that don't require traps defined?
Thanks again for all your help!