- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Kill -0 kills 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
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-21-2002 12:50 AM
05-21-2002 12:50 AM
Kill -0 kills process
How can the above happen? We have a process whereby we wish to check whether it is alive using kill -0 (SIGNULL). Instead, it is killed like a kill -9. How can this be? All other processes are not killed by kill -0, as usual.
Thanks,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 12:57 AM
05-21-2002 12:57 AM
Re: Kill -0 kills process
This is indeed unusual. You may like to update your system patches in the hope that this is a system bug.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 01:01 AM
05-21-2002 01:01 AM
Re: Kill -0 kills process
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 01:07 AM
05-21-2002 01:07 AM
Re: Kill -0 kills process
The application has it's own signal handler installed.
In an application you can define what to do upon receiving a signal. (using call sigset).
The application has the exit() function installed in its signal handler as a reaction to receiving signal 0.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 01:11 AM - last edited on 06-30-2022 03:36 AM by Sunitha_Mod
05-21-2002 01:11 AM - last edited on 06-30-2022 03:36 AM by Sunitha_Mod
Re: Kill -0 kills process
I don't think it can be the signal handler in the process, as according to the man page for terminate, it never gets a signal:
SIGNULL (0), the null signal, invokes error checking but no signal is
actually sent. This can be used to test the validity or existence of
pid.
Very strange... what is the process in question?
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 01:34 AM
05-21-2002 01:34 AM
Re: Kill -0 kills process
See man sh (trap).
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 02:07 AM
05-21-2002 02:07 AM
Re: Kill -0 kills process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 02:33 AM
05-21-2002 02:33 AM
Re: Kill -0 kills process
Can you just confirm that a "kill -0" is being used, and not a "kill 0".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 03:54 AM
05-21-2002 03:54 AM
Re: Kill -0 kills process
You don't have "kill" aliased do you?
Have you tried this manually from the command line on the process, because I'm assuming you have a script that is checking to see if the process is running?
Also, what shell are you using for your script?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 05:15 AM
05-21-2002 05:15 AM
Re: Kill -0 kills process
I'm using kill -s 0. Only this process is being killed, the others aren't, so no alias. I tried it on a script and also on the command line. I'm using the normal sh shell.
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 05:27 AM - last edited on 06-30-2022 01:13 AM by Sunitha_Mod
05-21-2002 05:27 AM - last edited on 06-30-2022 01:13 AM by Sunitha_Mod
Re: Terminate -0 terminates process
Isn't terminate a built-in in the standard HP-UX POSIX shell? WHat happens if you explicitly specify /usr/bin/terminate instead?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 05:35 AM
05-21-2002 05:35 AM
Re: Kill -0 kills process
Look in this thread where tusc is to download:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3d9fee3e323bd5118fef0090279cd0f9,00.html
Good luck
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 06:59 AM
05-21-2002 06:59 AM
Re: Kill -0 kills process
actually it might be more about your shell, than about the signal handler: in the past it was a kind of custom to send kill to pseudo-pid 0 in order to kill all processes of your *session* (ascii-terminal session, remind you).
So the kill command was implemented differently (might have been a "built-in" command, i.e. built-into the shell, like "cd").
FWIW,
Wodisch