Hi Martin!
2012/12/27 Martin Konečný <[email protected]>:
> I have the following command line :
>
> liquidsoap -c "output.dummy(audio_to_stereo(single('avicii.mp3')))"
>
> and simple c program that uses inotify to monitor accesses to a directory
> (available here:
> http://darkeside.blogspot.ca/2007/12/linux-inotify-example.html)
>
> This is all a very simple test environment set up to recreate what we are
> currently experiencing.
>
> So whenever I run the above Liquidsoap command, the inotify program reports
> the file was opened in read/write mode. If I take away write permissions on
> this file, then Liquidsoap opens it in read mode.
I am not sure how to go with this because we open files this way:
let fd = Unix.openfile filename [Unix.O_RDONLY] 0 in
It could be a bug in OCaml, although hard to believe, or a bug in
inotify.. Is there any chance you could try to a simple ocaml program
such as:
let () =
let fd = Unix.openfile Sys.argv.(1) [Unix.O_RDONLY] 0 in
Unix.close fd
Romain
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users