chiark / gitweb /
yaid.c: Common function for fixing connected sockets.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 20 Oct 2012 12:51:57 +0000 (13:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 21 Oct 2012 15:08:58 +0000 (16:08 +0100)
commit95df134c16f744e4ca2f65a0e4823c4a96b8f5b7
treec66768430d3f3a1086f403d9656446de9784ea21
parentc809f9081d5cd7692c9c8c2773e49bb831d65aba
yaid.c: Common function for fixing connected sockets.

Previously I'd forgotten to drag `out-of-band' data inline, which will
cause a select(2) spin, and to make the client connection be nonblocking.
Put all of the relevant stuff in a utility function.
yaid.c