lkml.org 
[lkml]   [1998]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [Tom Christiansen <>] Linux has a broken shutdown syscall!
    Date
    > Tom usually knows what he's talking about; is this really a problem
    > with Linux? What's going on here? :)

    Known 2.0.x bug.

    > 1) The call to PF_UNIX must be PF_UNSPEC (or 0) on SunOS and BSD,
    > even though it claims otherwise. There's some talk of PF_LOCAL,
    > but that's not even documented outside BSD. Linux will accept
    > either PF_UNIX or PF_UNSPEC there.

    PF_LOCAL is the POSIX 1003.1g name for local sockets. PF_UNIX isnt ok because
    POSIX is OS indepedant

    > 2) On Linux, shutdown is broken! You have to give it the opposite
    > argument! You must perversely do this:
    > shutdown(READER, 0);
    > shutdown(WRITER, 1);

    Its broken for AF_UNIX sockets only in 2.0.x. And yes known bug. Please
    don't fix it by reversing them, you'll break on newer kernels with the bug
    fixed.


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu

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