lkml.org 
[lkml]   [2003]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    Subject[BUG 2.5.X] pipe/fcntl/F_GETFL/F_SETFL obvious kernel bug
    From
    	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/

    \
     
     \ /
      Last update: 2005-03-22 13:34    [W:0.023 / U:0.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site