[GRASS-dev] v.what and spatial index

Glynn Clements glynn at gclements.plus.com
Thu Sep 14 02:40:02 EDT 2006


Moritz Lennert wrote:

> > One issue which won't show up when running it directly from the shell,
> > but will if you run it via pipes: you need to explicitly set stdin and
> > stdout to line-buffered operation with e.g.:
> > 
> > 	setvbuf(stdin,  NULL, _IOLBF, 0);
> > 	setvbuf(stdout, NULL, _IOLBF, 0);
> 
> I assume this can be done anywhere as long as its before the call to stdin ?

It needs to be done before anything reads from stdin or writes to
stdout.

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




More information about the grass-dev mailing list