[lkml]   [2005]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectfcntl(F_GETLEASE) semantics??

    The LTP test fcntl23 is failing. It does, in essence,
    fd = open(xxx, O_RDWR|O_CREAT, 0777);
    if (fcntl(fd, F_SETLEASE, F_RDLCK) == -1)

    fcntl always returns EAGAIN here. The manual page says that a read
    lease causes notification when `another process' opens the file for
    writing or truncates it. The kernel implements `any process'
    (including the current one).

    Which semantics are correct? Personally I think that what the kernel
    implements is correct (you can't get a read lease unsless there are no
    writers _at_ _all_)

    Dr Peter Chubb peterc AT
    The technical we do immediately, the political takes *forever*
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-08-11 01:50    [W:0.018 / U:30.852 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site