• Paul Eggert's avatar
    Prefer SOCK_NONBLOCK to O_NONBLOCK · f2d03334
    Paul Eggert authored
    * src/process.c (SOCK_NONBLOCK): Define to 0 if not already defined.
    (connect_network_socket): Create the socket with SOCK_NONBLOCK, to
    avoid an fcntl with O_NONBLOCK if SOCK_NONBLOCK works.  Put the
    SOCK_DGRAM check a bit later, to keep the logic cleaner, as
    the order does not matter here.
    f2d03334
process.c 232 KB