[erlang-questions] Flush "stdout" buffer

Per Hedeland <>
Sat Sep 2 12:10:22 CEST 2017


On 2017-09-02 08:54, zxq9 wrote:
> On 2017t0902å Üå 06:42:43 Frank Muller wrote:
>> Hi Per,
>>
>> Hmmm ... So If i understand it well, we've no control on that after all.
>>
>> The data can still be buffered on the kernel side.
> 
> Right, WE don't have control over it, but the runtime already does, and as far as I can tell, fflush() is called every place it would be meaningful to do so already.

Well, as stated, that is probably correct, but as I at least implied,
the VM doesn't even *use* stdio for the I/O operations requested by
Erlang code. Basically all your "fflush" hits are in test / debug /
port-program code that doesn't even run in the VM.

--Per


More information about the erlang-questions mailing list