[BUG 2.5.X] pipe/fcntl/F_GETFL/F_SETFL obvious kernel bug

From: Jean Tourrilhes (jt@bougret.hpl.hp.com)
Date: Thu Apr 24 2003 - 13:33:14 EST


        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);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:17 EST