From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: Linux kernel mailing list <linux-kernel@vger.kernel.org>,
Jeff Garzik <jgarzik@pobox.com>,
davem@redhat.com, kuznet@ms2.inr.ac.ru
Subject: [BUG 2.5.X] pipe/fcntl/F_GETFL/F_SETFL obvious kernel bug
Date: Thu, 24 Apr 2003 11:33:14 -0700 [thread overview]
Message-ID: <20030424183313.GA17374@bougret.hpl.hp.com> (raw)
Hi,
I reported this obvious kernel 2.5.X bug 6 months ago, and as
of 2.5.67 it is still not fixed. Do you know who I should send this
bug report to ?
Thanks...
Jean
---------------------------------------------
Compile test program below.
On 2.5.67 :
GET FLAGS : 0 - 40044F18
SET FLAGS : -1 - 22
On 2.4.21-pre7 :
GET FLAGS : 0 - 40043F18
SET FLAGS : 0 - 0
---------------------------------------------
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
int main()
{
int trigger_pipe[2];
int err;
int flags;
pipe(trigger_pipe);
err = fcntl(trigger_pipe[0], F_GETFL, &flags);
fprintf(stderr, "GET FLAGS : %d - %X\n", err, flags);
if(err >= 0)
{
flags |= O_NONBLOCK;
//flags |= O_NDELAY;
//flags &= ~O_NDELAY;
err = fcntl(trigger_pipe[0], F_SETFL, flags);
fprintf(stderr, "SET FLAGS : %d - %d\n", err, errno);
}
return(0);
}
next reply other threads:[~2003-04-24 18:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 18:33 Jean Tourrilhes [this message]
2003-04-24 21:23 ` [BUG 2.5.X] pipe/fcntl/F_GETFL/F_SETFL obvious kernel bug Andrew Morton
2003-04-24 21:35 ` Jean Tourrilhes
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=20030424183313.GA17374@bougret.hpl.hp.com \
--to=jt@bougret.hpl.hp.com \
--cc=davem@redhat.com \
--cc=jgarzik@pobox.com \
--cc=jt@hpl.hp.com \
--cc=kuznet@ms2.inr.ac.ru \
--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 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).