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 FAA15158; Wed, 18 Sep 2002 05:14:00 +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 FAA14505 for ; Wed, 18 Sep 2002 05:13:59 +0200 (MET DST) Received: from lobus.fungible.com (adsl-64-161-114-6.dsl.snfc21.pacbell.net [64.161.114.6]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8I3Dv105151 for ; Wed, 18 Sep 2002 05:13:58 +0200 (MET DST) Received: by lobus.fungible.com (Postfix, from userid 1000) id 4EC427F4F; Tue, 17 Sep 2002 20:13:51 -0700 (PDT) Date: Tue, 17 Sep 2002 20:07:57 -0700 From-Tims-Fingers: true To: ikeda@msi.co.jp Cc: caml-list@inria.fr In-reply-to: <20020918115148K.ikeda@msi.co.jp> (message from IKEDA Katsumi on Wed, 18 Sep 2002 11:51:48 +0900) Subject: Re: [Caml-list] Client/Server socket communication References: <20020918115148K.ikeda@msi.co.jp> Message-Id: <20020918031351.4EC427F4F@lobus.fungible.com> From: tim@fungible.com (Tim Freeman) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >Why "server " is occurred. >What do I have to do to correct ? This is a Unix thing, not an OCAML thing. The child will be defunct to hold the exit status so it can be reported to the parent when the parent waits for it, or until the parent exits. One workaround is to wait for the child process when you expect it to exit. Another workaround is to fork twice, so the original process is the parent of a temporary process, and the temporary process is the parent of the process you really wanted to create. The temporary process exits immediately and the original parent waits for it immediately. This leaves no defunct processes. -- Tim Freeman tim@fungible.com GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78 ------------------- 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