Re: kill signals
Charles Fry <[email protected]> Wed, 24 Mar 2004 12:38:32 -0500
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <[email protected]> |
Would it be reasonable to suggest that an optional parameter be added to the kill command specifying which signal to use? This would follow naturally from the unix kill command, and would provide a satisfactory mechanism to deal with the problem described below. Inasmuch as quit works by killing all windows, it could also take a signal as an optional parameter. Charles -----Original Message----- > From: Charles Fry <[email protected]> > Subject: kill signals > Date: Mon, 22 Mar 2004 22:27:51 -0500 > To: [email protected] > Mailing-List: list [email protected]; contact [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 > > > > > -- She will Flood your face With kisses 'Cause you smell So darn delicious Burma-Shave Lotion http://frogcircus.org/burmashave/1950/she_will 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/