caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Setting Pervasive's stderr to unbuffered as default?
@ 2015-08-23  0:19 Oliver Bandel
  2015-08-24 12:19 ` Sébastien Hinderer
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Bandel @ 2015-08-23  0:19 UTC (permalink / raw)
  To: caml-list

Hello,

stderr on Unix is unbuffered by default.

In OCaml, all the Channels from Pervasives are buffered by default,
and flush-function must be used.
This issue is annoying me since ages...

Is there a way to set Unix-like-behaviour (unbuffered stderr =>  
unbuffered Pervasives.stderr)
as default?

Something like setbuf(3) / setvbuf(3) for OCaml's pervasives?

Would a feature-wish for this feature have any chance of success?

Ciao,
    Oliver


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-25 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-23  0:19 [Caml-list] Setting Pervasive's stderr to unbuffered as default? Oliver Bandel
2015-08-24 12:19 ` Sébastien Hinderer
2015-08-25 11:09   ` Gerd Stolpmann
2015-08-25 11:52     ` Sébastien Hinderer
2015-08-25 12:32     ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).