[Gambas-user] open named pipe never returns

Benoît Minisini g4mba5 at gmail.com
Mon Nov 19 18:57:23 CET 2018


Le 19/11/2018 à 10:20, Tobias Boege a écrit :
> On Sun, 18 Nov 2018, Steve via User wrote:
>> The statement
>>
>> hfile = open pipe "/tmp/mypipe01" for watch  (or for read) never returns
>> (acts like deadlock).
>>
>> It does actually create the pipe.
>>
 >
 > [...]
> 
> It is actually an excerpt of the mkfifo(3) man page, so this is completely
> normal behaviour. Internally, Gambas uses mkfifo() followed by a normal
> open() to create a pipe Stream object, to answer your actual question,
> and not what I think your question should have been :-)
> 
> Regards,
> Tobi
> 

Maybe the pipe should be automatically switched to non-blocking mode 
when the WATCH keyword is used? It seems to make sense...

-- 
Benoît Minisini


More information about the User mailing list