[GRASS5] [bug #3481] (grass) quit d.m automatically after typing exit to GRASS prompt

Daniel Calvelo Aros dcalvelo at minag.gob.pe
Fri Aug 5 10:25:53 EDT 2005

From: Markus Neteler <neteler at itc.it>
Sent: Fri, 5 Aug 2005 12:17:49 +0200
> On Fri, Aug 05, 2005 at 10:05:31AM +0200, Request Tracker wrote:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=3481
> > -------------------------------------------------------------------------
> > 
> > Subject: quit d.m automatically after typing exit to GRASS prompt
> > 
> > Platform: GNU/Linux/i386
> > grass obtained from: Trento Italy site
> > grass binary for platform: Compiled from Sources
> > GRASS Version: CVS 6.1 checked out at 20050805
> > 
> > Dear Developers, 
> > 
> > would it be possible to quit the d.m GUI automatically when typing exit at
the GRASS prompt. It is only one more mouse click - I know, but it is annoying
if you often need to change locations.
> >
> I have merged this into
>  http://intevation.de/rt/webrt?serial_num=3050
> I am not sure how this could be done. Save the d.m PID on
> startup in a env var and the kill it?

Maybe have d.m (and maybe other interactive and parallel-exxecuting scripts,
e.g. nviz) write its PID into the /tmp grass directory as stg like
'killmeonexit1234' where 1234 is the process PID, and upon exit kill all such
notes from Init.(c)sh.

bash has a huponexit option (activate with shopt) that sends a SIGHUP to all
child processes upon exit. Is this inherited from sh or yet another useful
GNUism? Equivalent in csh?


More information about the grass-dev mailing list