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

Function set_cloexec

run-command.c:551–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549#endif /* GIT_WINDOWS_NATIVE */
550
551static inline void set_cloexec(int fd)
552{
553 int flags = fcntl(fd, F_GETFD);
554 if (flags >= 0)
555 fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
556}
557
558static int wait_or_whine(pid_t pid, const char *argv0, int in_signal)
559{

Callers 2

start_commandFunction · 0.85
start_asyncFunction · 0.85

Calls 1

fcntlFunction · 0.85

Tested by

no test coverage detected