- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Difference between kill -4 and kill -9 command...
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
тАО09-07-2006 10:04 AM
тАО09-07-2006 10:04 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 12:18 PM
тАО09-07-2006 12:18 PM
Solutionan HP-UX forum, but it probably matters
little in this case.
"kill" sends a signal to the specified
process. 9 is SIGKILL, 4 is SIGILL. (See
signal.h.) What effect that has depends on
how the program running in the process in
question handles the signal in question.
(And several other signal values, are also
possible.)
In general, process termination will close
any open files, and so on. If you're worried
about temporary files and the like, then you
might wish to add a signal handler to the
application and give the application a chance
to clean up after itself before it dies.
Note that some signals (like SIGKILL) can't
easily be caught, so there's normally a limit
on how certain you can be about your clean-up
code getting executed.
Normal folks are not allowed to send signals
to processes to which they have no rights.
If they whack only their own stuff, what do
you care?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 12:23 PM
тАО09-07-2006 12:23 PM
Re: Difference between kill -4 and kill -9 commands?
instead of the numbers with "kill", which
requires more keystrokes, but tends to reduce
the mystery. For example, "kill -KILL" is
equivalent to "kill -9".
And, with so many more appropriate signals
available, why would anyone send SIGILL to
an application, anyway?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2006 03:48 AM
тАО09-08-2006 03:48 AM
Re: Difference between kill -4 and kill -9 commands?
Unfortunately we support a wide client base who allows root to be handed out to near anyone on there servers. We seem to get dozen calls or so a month from various folks who used the kill command to "take care of an issue" only to leave us to handle the mess. I'm compiling all the kill options and our order of preference for how they should be used. For some reason it seems like many of them are using Kill -4 (told to do so at some point from a supoort rep). From what the HP rep told me, he thinks it's the same as doing a kill -9 which of course is a last resort and not a first option someone should be using.
Thanks for replying and have a good day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2006 04:19 AM
тАО09-08-2006 04:19 AM
Re: Difference between kill -4 and kill -9 commands?
selected because it's not 9 (SIGKILL), and
it may also be unlikely to be handled by any
typical application, so it would have about
the same effect as 9. It's not a very good
reason, but someone might have thought that
it was.
Of course, it might also be the result of a
spelling error somewhere along the line.