[GRASS5] [bug #2927] (grass) d.what.vect - broken pipe
Radim Blazek
blazek at itc.it
Thu Jan 27 10:19:27 EST 2005
Radim Blazek wrote:
> Florian Goessmann wrote:
>
>>
>> On 27.01.2005, at 20:48, Radim Blazek wrote:
>>
>>>
>>> Let us know if it helps.
>>
>>
>>
>>
>> sadly, no. at least on OS X.3.x, it's like maciek said. with sleep w
>> it takes a little to start d.what.vect but it quick afterwards.
>
>
> Can you try to comment
> fcntl ( fileno(child_recv), F_SETFL, O_NONBLOCK);
> in main?
If it helped, try to move it below the first read
while ( 1 ) {
ret = read ( fileno(stdin) , &(buf[0]), 1);
fcntl ( fileno(child_recv), F_SETFL, O_NONBLOCK);
if ( ret == 0 ) break; /* Pipe was closed by parent -> quit */
if ( ret == 1 ) {
otherwise the form is not updated and cannot be edited.
Radim
More information about the grass-dev
mailing list