- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: A funny thing happened to me at the help desk ...
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
тАО09-03-2008 11:42 PM
тАО09-03-2008 11:42 PM
Re: A funny thing happened to me at the help desk today,...
9 SIGKILL Kill Forced termination; cannot be trapped
15 SIGTERM Terminate Terminate; can be trapped
===================================
|cannot be trapped/can be trapped.|
===================================
But I like 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 04:56 AM
тАО09-04-2008 04:56 AM
Re: A funny thing happened to me at the help desk today,...
Are you telling me that it is impossible to sigkill a parent process and have it's children become zombies?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 05:07 AM
тАО09-04-2008 05:07 AM
Re: A funny thing happened to me at the help desk today,...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 05:09 AM
тАО09-04-2008 05:09 AM
Re: A funny thing happened to me at the help desk today,...
The live time of a zombie only depends of its parent configuration of SIGCLD.
If parent don't ignore SIGCLD, it will stay until the parent make a wait3() or withpid().
If parent ignore SIGCLD, zombie will disappear.
If parent is dead, zombie parent will be 1 (init) and init will clean the zombie.
I hope this answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 05:16 AM
тАО09-04-2008 05:16 AM
Re: A funny thing happened to me at the help desk today,...
From man-pages it seems like one should use 15 before 9 ....
And - is anyone using the -s option?
Because "-signum is Obsolescent" ??
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 06:11 AM
тАО09-04-2008 06:11 AM
Re: A funny thing happened to me at the help desk today,...
# kill -9 1
It was sort of funny the first time they did it...
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 08:26 AM
тАО09-04-2008 08:26 AM
Re: A funny thing happened to me at the help desk today,...
Ian, no points please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 09:10 AM
тАО09-04-2008 09:10 AM
Re: A funny thing happened to me at the help desk today,...
kill -9 = kill program, no chance for cleanup, file closing, flushing, mem-releasing, etc. by the program itself. The program can't ignore this signal.
Always best to try kill -15 (default) first.
Re: zombie - you have to kill the zombie parent controller - HOWEVER, if the program has a parent - why is it a zombie????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 10:04 AM
тАО09-04-2008 10:04 AM
Re: A funny thing happened to me at the help desk today,...
> parent controller - HOWEVER, if the program
> has a parent - why is it a zombie????
Just make a small program:
#include
main()
{
signal(SIGCLD, SIG_BLOCK);
if (fork())
sleep(10000);
}
# ps -l
or
#include
handler() {
}
main()
{
int s;
signal(SIGCLD, handler);
if (fork())
{
if( sleep(100)) sleep(100);
wait(&s);
}
}
This one is doing something else, so it doesn't get the stats of the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 10:19 AM
тАО09-04-2008 10:19 AM
Re: A funny thing happened to me at the help desk today,...
Ian, would you consider closing this thread?
Pete
No points, please.
Pete