From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Anastasia Gornostaeva <ermine@ermine.pp.ru>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] fork() and threads in ocaml 3.11
Date: Thu, 18 Dec 2008 15:51:48 +0100 [thread overview]
Message-ID: <494A6384.1070406@inria.fr> (raw)
In-Reply-To: <20081217182834.GB36722@ermine.home>
> 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.
This could be the same problem reported under MacOS X as PR#4666 in
the bug tracker. Apparently, MacOS X doesn't allow a process having
multiple threads to perform an exec*() system call. Maybe FreeBSD has
the same limitation.
> I tried ocaml from yesterday's CVS, but it does not help.
The "release 3.11" branch of the CVS contains a tentative fix for
PR#4666. It isn't yet propagated to the CVS trunk. You can get this
branch using "cvs co -r release311".
Hope this helps,
- Xavier Leroy
next prev parent reply other threads:[~2008-12-18 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 18:28 Anastasia Gornostaeva
2008-12-18 14:51 ` Xavier Leroy [this message]
2008-12-18 19:25 ` [Caml-list] " 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=494A6384.1070406@inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@yquem.inria.fr \
--cc=ermine@ermine.pp.ru \
/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