[Gambas-user] Opening Pipes (avoiding lockup)

Benoît Minisini g4mba5 at gmail.com
Sun Oct 4 00:20:27 CEST 2020


Le 03/10/2020 à 22:37, Jussi Lahtinen a écrit :
> "Opening a pipe for reading normally blocks until some other process 
> opens the same pipe for writing."
> http://gambaswiki.org/wiki/lang/pipe
> 
> I don't think you should be able to open pipe for read AND write at the 
> same time.
> Benoit?
> 
> Jussi
> 

Now when you open a named pipe for reading, it is actually opened in 
non-blocking mode, and then set to blocking mode once opening has 
succeeded. Only in older version of Gambas (< 3.15) opening a pipe for 
reading had to wait for the pipe being opened for writing.

Regards,

-- 
Benoît Minisini


More information about the User mailing list