LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] i killed the head but the body keeps moving

[ILUG] i killed the head but the body keeps moving

Anders Holm anders.holm at elivefree.net
Wed May 22 11:13:53 IST 2002


Why not use the rc scripts to stop the web server graciously instead??

Best Regards

Anders Holm
 

-----Original Message-----
From: ilug-admin at linux.ie [mailto:ilug-admin at linux.ie]On Behalf Of Hunt,
Bryan
Sent: 22 May 2002 11:09
To: Ilug (E-mail)
Subject: [ILUG] i killed the head but the body keeps moving



Quick question .....

A script calls a java program (a web server) ie 
./build.sh jetty-smart &
processnum=$! 

Then i sleep ...
sleep 60 

Then I run another task ....
./build.sh unittests

Then I want to kill the web server ...
kill ${processnum} 

The problem is that this kills the head but the webserver and all its
processes 
continue on in zombie mode .... 

Is there a specific signal that I should be using here or is it going to be
a problem 
regardless cause of dodgy pthread related problems ?

Ta 
--B



-- 
Irish Linux Users' Group: ilug at linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell