Hello there,
I had a problem running liquidsoap for a long time : it crashes due to a too
large number of opened files. It turned out that somewhere a bidirectional
pipe was opened but only the write-to side was closed, leaving the read-from
side opened.
By grepping Unix.pipe() */*/*.ml, I found something troubling in
ocaml-duppy/src/duppy.ml :
let out_pipe,in_pipe = Unix.pipe () in
...
if !stop then begin
begin
try
Unix.close in_pipe
with _ -> ()
end ;
[]
end
I guess there is also something like Unix.close out_pipe missing here. Since
I added this, liquidsoap has been working fine, with a much more stable
number of file descriptors.
Does my kind of tweak to correct this make sense ?
Thank you in advance,
Benoit Avarapi
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users