- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Kill running process
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
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
тАО08-15-2000 05:15 PM
тАО08-15-2000 05:15 PM
Kill running process
I'm using command kill -9 PID to kill one of my running process.Unfortunely the process still running.
I try to kill the Shell PID to disconnect the session, unfortunely the process still running ,but the session is actually disconnected.
Please guide and Thanks in advance.
Regards,
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 05:36 PM
тАО08-15-2000 05:36 PM
Re: Kill running process
Rgds
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 05:46 PM
тАО08-15-2000 05:46 PM
Re: Kill running process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 06:03 PM
тАО08-15-2000 06:03 PM
Re: Kill running process
What was the status for your process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 06:09 PM
тАО08-15-2000 06:09 PM
Re: Kill running process
I have kill the parent pid , and this cause the PPID for the process become 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 10:09 PM
тАО08-15-2000 10:09 PM
Re: Kill running process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:17 PM
тАО08-15-2000 11:17 PM
Re: Kill running process
This process must now be stuck on a socket. Theres no easy to free up a stuck socket under HP-UX. The only options are to;
1. reboot the PC or WS that the user was using who started the process. This may free up the stuck socket allowing the process to die. (give it some time after the reboot before moving onto option 2.)
2. reboot the HP server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:20 PM
тАО08-15-2000 11:20 PM
Re: Kill running process
However, all kills can fail (including -9), if the process is waiting on a system call that is uninterruptable. There is no way to kill/remove these processes if what the system call is waiting for, is missed or never turns up. Only a reboot will clear them.
Kill -9 however, can make things worse, as it doesn't give the process enough time to tidy up. It won't release shared memory, semaphores, file locks etc, and you can be heading for a reboot due just to doing a kill -9.
If a process won't die with a kill -15 or -1, then try and see if it's still running before doing a -9. If it's 'sleeping' don't using -9, as it's not going to die anyway. If it's running, then someone is just trapping the signals and -9 will probably kill it. However, as I stated above, the process won't clean up after it's self.
Btw, you can't trap kill -9.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:27 PM
тАО08-15-2000 11:27 PM
Re: Kill running process
This really helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:36 PM
тАО08-15-2000 11:36 PM
Re: Kill running process
Can we awake a sleeping process by kill -26 (SIGCONT) and hope it catch the abort signal from the OS?
-Philip