[Gambas-bugtracker] Bug #2388: writing large data string to pipe causes gambas app to hang

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Oct 30 03:23:53 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2388&from=L21haW4-

Comment #2 by Benoît MINISINI:

Of course. A pipe is a limited memory buffer. As soon as Write has filled the pipe, it blocks.

I don't know what you want to achieve, but your code cannot work.

You have created a dead lock by design.

The 'tr' process outputs what it receives on another pipe created by the interpreter, and as you are in the Write instruction, the interpreter never read the pipe, and so 'tr' is blocked, and so Write is blocked too.




More information about the Bugtracker mailing list