[erlang-questions] Flush "stdout" buffer

Richard A. O'Keefe <>
Mon Sep 4 02:20:51 CEST 2017



On 2/09/17 6:54 PM, zxq9 wrote:
> On 2017年09月02日 土曜日 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.

For kernel buffering there is fsync(fileno(...)).  Of course this
does nothing about *device* buffering...



More information about the erlang-questions mailing list