Hello,

I observed a strange behavior on MacOS X, both with the native ocaml version 
and the macports version (latest stable ocaml version in both cases). When I 
compile the following file test.ml:

====

(*ocamlopt -thread unix.cmxa threads.cmxa -o threadtest test.ml*)

ignore (Unix.system "pwd > pwd.out");;
ignore (Thread.create (fun _ -> ()) 5);;

====

the system call is NOT performed. However, without the last line and the same 
compilation commands it is working.
On Linux, it's working perfectly with the last line.

Did I do something wrong, or is it not possible to do system calls together 
with using threads?

By the way, the same happens with Sys.command and with Unix.create_process.


Thanks a lot in advance for help,

Tobias

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to