From: Anastasia Gornostaeva <ermine@ermine.pp.ru>
To: caml-list@yquem.inria.fr
Subject: fork() and threads in ocaml 3.11
Date: Wed, 17 Dec 2008 21:28:34 +0300 [thread overview]
Message-ID: <20081217182834.GB36722@ermine.home> (raw)
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
next reply other threads:[~2008-12-17 18:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 18:28 Anastasia Gornostaeva [this message]
2008-12-18 14:51 ` [Caml-list] " Xavier Leroy
2008-12-18 19:25 ` Anastasia Gornostaeva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081217182834.GB36722@ermine.home \
--to=ermine@ermine.pp.ru \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox