]> git.eshelyaron.com Git - emacs.git/commit
Prefer SOCK_NONBLOCK to O_NONBLOCK
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 May 2016 00:04:44 +0000 (17:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 May 2016 00:05:25 +0000 (17:05 -0700)
commitf2d03334814cff85013135366a46a85f3124f7f0
treed71374198e8e9f431b9025783a2de326d13be8c6
parente5015c5d9632a0bf685c093249ae4a7d3e825b13
Prefer SOCK_NONBLOCK to O_NONBLOCK

* 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.
src/process.c