Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: [PATCH v2] git daemon: avoid waking up too often

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:45:00

On 7/23/08, Johannes Sixt [off-list ref] wrote:
This makes porting this beast to Windows practically impossible because we
 cannot have a poll() implementation that waits both on a listening socket
 and a pipe. :-(
I have worked around such problems in the past by having a thread
whose job it is to read from the pipe and simply write it to a socket.
 The trick works for "console" objects, too, which in win32 are even
less agreeable than pipes.

(In case your life wasn't disgusting enough already today :))

Alternatively, you could use something like socketpair() instead of a
pipe for this purpose.  Naturally, Win32 helps you out here by somehow
forgetting to include socketpair() in winsock, although it's sort of
easy to emulate.

Have fun,

Avery
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help