]> git.ipfire.org Git - thirdparty/git.git/commit
nonblock: support Windows
authorRené Scharfe <l.s.r@web.de>
Wed, 17 Aug 2022 06:05:25 +0000 (02:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Aug 2022 16:21:40 +0000 (09:21 -0700)
commit24b56ae4aecc937a246efb94d283f54a7f59c7f1
treeaf2c12bd211b960c757baa5670ebfeda79376c0a
parent10f743389ca9a92720fb9c3d15f647888d82c297
nonblock: support Windows

Implement enable_pipe_nonblock() using the Windows API. This works only
for pipes, but that is sufficient for this limited interface. Despite
the API calls used, it handles both "named" and anonymous pipes from our
pipe() emulation.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/nonblock.c