English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
fork() and threads in ocaml 3.11
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-12-17 (18:28)
From: Anastasia Gornostaeva <ermine@e...>
Subject: fork() and threads in ocaml 3.11

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
  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?