[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffered inter-process communication
From: |
felix . winkelmann |
Subject: |
Re: buffered inter-process communication |
Date: |
Thu, 10 Mar 2022 17:38:43 +0100 |
> Hi,
> I am new to chicken and got stuck trying to do buffered inter-process
> communication.
> Could someone give me a hint why in the sample code below `copy_b`
> freezes whereas `copy_c` works as expected?
> Thanks!
>
As read-buffered only returns the data buffered by the last read operation,
your code will not work. You should read block-wise by using "read-string"
or read byte-wise (as does copy_c in your code).
felix