[GRASS-dev] [grass-code I][478] tcl/tk gui startup screen launches grass even when 'Exit' is pushed

Glynn Clements glynn at gclements.plus.com
Thu Sep 27 06:48:09 EDT 2007


Paul Kelly wrote:

> Another option (to make it even clearer that the user clicking exit was a 
> special case and not a "normal" error) could be that that resulted in a 
> return value of -1, and any positive return value indicated an error, but 
> I have no idea how cross-platform/GUI scripting language-compatible that 
> would be.

Exit codes are limited to 8 bits, so if you return -1, the caller will
see 255.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list