[GRASS-dev] Exit code for Tk GUI

Maciej Sieczka tutey at o2.pl
Tue Sep 25 01:34:40 EDT 2007


Glynn Clements wrote:
> Maris Nartiss wrote:

>> TCL's close{} provides error code from launched module in "proc
>> Gronsole::readeof" IF in "proc Gronsole::execbg " pipeline is not
>> changed to be non-blocking (remove "fconfigure $fh -blocking 0").

> Both Gronsole::destroy_command and Gronsole::execout close the stream
> without recording the status (both silently "catch" any exception).
> 
> However: I'm not sure if it's meaningful for the GUI to report the
> command's exit status. Once the GUI is created, you can run the
> command multiple times (with different options each time).
> 
> What does "success" mean? That all of the runs succeeded? Or at least
> one run? Or the last run?

I believe the success should indicate that the GUI was
closed cleanly (user pressing "Close" button) and failure
should indicate that the window crashed.

Maciek




More information about the grass-dev mailing list