From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA19884; Sun, 5 Sep 2004 15:53:38 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA20777 for ; Sun, 5 Sep 2004 15:53:37 +0200 (MET DST) Received: from mail.hybrid.fi (www.hybrid.fi [195.170.158.34]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i85Drbmt001992 for ; Sun, 5 Sep 2004 15:53:37 +0200 Received: from charon ([195.170.158.21]:39974 "EHLO imap.hybrid.fi") by hybrid.fi with ESMTP id ; Sun, 5 Sep 2004 16:53:27 +0300 X-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_00 Received: from [127.0.0.1] ([195.170.158.34]) by imap.hybrid.fi (Kerio MailServer 6.0.1) for caml-list@inria.fr; Sun, 5 Sep 2004 16:53:25 +0300 Message-ID: <413B1A52.8060007@hybrid.fi> Date: Sun, 05 Sep 2004 16:53:22 +0300 From: Janne Hellsten Reply-To: janne@hybrid.fi User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Unix module and threads References: <413AC784.4010007@hybrid.fi> <20040905134246.GA8829@fichte.ai.univie.ac.at> In-Reply-To: <20040905134246.GA8829@fichte.ai.univie.ac.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 413B1A61.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 threads:01 threads:01 clarifying:01 work-around:01 portably:01 thread-safe:01 unix:02 unix:02 module:03 markus:04 shared:05 something:09 david:09 think:11 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Thank you Markus and David, this is sort of what I was afraid of (e.g., curdir is shared among threads). Thank you for clarifying this. As my build scripts require the working directory to be set, I think I have to work-around this and do something along the lines of: Unix.system "cd my_working_dir && build_cmd" I wonder if there's some other way of doing this portably and in a thread-safe fashion? Best regards, Janne Hellsten > > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners