[GRASS5] G_sock_*, XDRIVER, and other fun...
Markus Neteler
neteler at geog.uni-hannover.de
Mon Feb 12 17:41:56 EST 2001
On Mon, Feb 12, 2001 at 01:03:47PM -0800, Eric G . Miller wrote:
> On Mon, Feb 12, 2001 at 11:48:41AM +0000, Markus Neteler wrote:
> > Small idea to improve:
> > If you click-off a monitor and run d.rast (or whatever) later, you get:
> > d.rast tk25
> > Socket is already in use or not accepting connections.
>
> Okay, I looked into this. The problem is, most programs don't seem to
> check the return value of R_open_driver(). It returns a non-zero value
> if it fails. Putting an exit() or similar into libraster would break
> d.mon's ability to report the status of all the drivers. So, all d.*
> programs need to check that they actually were able to open the display
> driver (rather than just assuming).
Hi Eric,
this sounds like a bunch of work. Is there a chance to use an "intelligent"
script to exchange the R_open_driver() command by an improved call
to R_open_driver() with checking the exit status (hi script gurus!)?
> > This message might be extended: "Run d.mon to start new monitor.".
> > A problem is, that the message doesn't time-out. Means, you need to Ctrl-C
> > it away (funny: you have to hit return, before Ctrl-C is accepted).
> > Could you use G_fatal_error() for this message?
>
> d.rast get's hung because it tries to do drawing when there's nothing to
> draw to. This is a module problem, not a library problem.
I see. Thanks for clarification.
Markus
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list