MCPcopy Create free account
hub / github.com/git/git / enable_pipe_nonblock

Function enable_pipe_nonblock

compat/nonblock.c:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#ifdef O_NONBLOCK
5
6int enable_pipe_nonblock(int fd)
7{
8 int flags = fcntl(fd, F_GETFL);
9 if (flags < 0)
10 return -1;
11 flags |= O_NONBLOCK;
12 return fcntl(fd, F_SETFL, flags);
13}
14
15#elif defined(GIT_WINDOWS_NATIVE)
16

Callers 1

pipe_commandFunction · 0.85

Calls 2

fcntlFunction · 0.85
err_win_to_posixFunction · 0.85

Tested by

no test coverage detected