Hi all !
While discussing the fact that dtools doesn't close stdout, we discovered
that, while it's recommended for a proper daemon fork to close stdin, stdout
and stderr, with a minimal test, it seems that writing to stdout while
previously closed might crash the process..
Than I guess, we should take care of not using Print.printf in liquidsoap..
I've greped for Printf.printf, and found some use that are legal, such as in
lang.ml, main.ml and dynliq.ml, and some that do not seem..
I've written quick and dirty patch to convert them to log#f, but perhaps you'd
like to have it another way ?
Also, we should take care of process output from system() calls and co.. ?
I've tested closing stdout while liq uses scripts that output to stdout, seems
it works, but needs to be confirmed...