caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* fork() and threads in ocaml 3.11
@ 2008-12-17 18:28 Anastasia Gornostaeva
  2008-12-18 14:51 ` [Caml-list] " Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Anastasia Gornostaeva @ 2008-12-17 18:28 UTC (permalink / raw)
  To: caml-list

Hello.

The program

open Unix
  
let os = (let f = open_process_in "uname -sr" in
          let answer = input_line f in
            ignore (close_process_in f); answer)
  
let _ =
  let f () =
    print_endline os
  in
  let t = Thread.create f () in
    Thread.join t

hangs on my FreeBSD 7.0.
I tried ocaml from yesterday's CVS, but it does not help.
How to be? 

ermine


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

end of thread, other threads:[~2008-12-18 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-17 18:28 fork() and threads in ocaml 3.11 Anastasia Gornostaeva
2008-12-18 14:51 ` [Caml-list] " Xavier Leroy
2008-12-18 19:25   ` Anastasia Gornostaeva

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).