caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johan Grande <johan.grande@ens-cachan.org>
To: Gerd Stolpmann <info@gerd-stolpmann.de>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Child process doesn't terminate
Date: Tue, 25 Mar 2014 00:59:27 +0100	[thread overview]
Message-ID: <5330C6DF.6060800@ens-cachan.org> (raw)
In-Reply-To: <1395696533.27397.36.camel@zotac>

Le 24/03/2014 22:28, Gerd Stolpmann a écrit :
> Am Montag, den 24.03.2014, 19:23 +0100 schrieb Johan Grande:
>> In the following program, the child process "cat" never terminates. I
>> don't understand why; can anyone tell me?
>
> Because outdescr isn't closed in the child. Set the close-on-exec flag
> on it.

Indeed, set_close_on_exec did the trick. Thanks!

-- 
Johan


  reply	other threads:[~2014-03-24 23:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24 18:23 Johan Grande
2014-03-24 21:28 ` Gerd Stolpmann
2014-03-24 23:59   ` Johan Grande [this message]
2014-03-24 22:55 ` oliver
2014-03-25  0:10   ` Johan Grande

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=5330C6DF.6060800@ens-cachan.org \
    --to=johan.grande@ens-cachan.org \
    --cc=caml-list@inria.fr \
    --cc=info@gerd-stolpmann.de \
    /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;
as well as URLs for NNTP newsgroup(s).