kill signals

Charles Fry <[email protected]> Mon, 22 Mar 2004 22:27:51 -0500
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
Hi,

I am running Screen version 4.00.02 (FAU) 5-Dec-03. For my
fault-tolerant middleware class I wrote a replica manager that followed
the basic patterne I documented at:

   http://frogcircus.org/screen/remote

Now, the night before one of our deliverables is due, I discovered a
small problem. In my tests I was able to succesfully kill processes
running in screen by invoking:

   screen -S <sessionname> -X quit

However our project runs under java, and when I invoke a java process in
screen (invoked in detached mode with -d -m), and then quit screen using
the above command, the java process remains running, simply detached
from the now dead screen session.

I have tried using kill, and obtained exactly the same results. My
attempts to use break had no visible effect on the executing program. My
best guess is that both kill and quit send signal 15, which java is
ignoring. I don't see any documentation in the screen man page about
setting the kill signal to something else, such as 9 which java actually
listens to. Any ideas on how to automatically (i.e. from a script) kill
the processes running in screen (ideally without using killall, and
without explicitely knowing the pids of the processes inside of the
screen).

thanks for the assistance,
Charles

-- 
The bearded devil
Is forced
To dwell
In the only place
Where they don't sell
Burma-Shave
http://frogcircus.org/burmashave/1940/the_bearded_devil


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/gnu-screen/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/