From: Ben Greear <greearb@candelatech.com>
To: Ulrich Drepper <drepper@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: close-exec flag not working in 2.6.9?
Date: Mon, 31 Jan 2005 13:26:19 -0800 [thread overview]
Message-ID: <41FEA27B.90508@candelatech.com> (raw)
In-Reply-To: <a36005b505013113084015a85@mail.gmail.com>
Ulrich Drepper wrote:
> On Sun, 30 Jan 2005 23:56:07 -0800, Ben Greear <greearb@candelatech.com> wrote:
>
>> flags = fcntl(s, F_GETFL);
>> flags |= (FD_CLOEXEC);
>> if (fcntl(s, F_SETFL, flags) < 0) {
>
>
> These have to be F_GETFD and F_SETFD respectively. Note L -> D.
Yes, that does seem to work much better. It would have been
a while before I ever figured that out on my own.
Thanks to you and the other people who pointed that out
off the list!
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2005-01-31 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-31 7:56 close-exec flag not working in 2.6.9? Ben Greear
2005-01-31 21:08 ` Ulrich Drepper
2005-01-31 21:26 ` Ben Greear [this message]
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=41FEA27B.90508@candelatech.com \
--to=greearb@candelatech.com \
--cc=drepper@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.