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

Function atfork_parent

run-command.c:536–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536static void atfork_parent(struct atfork_state *as)
537{
538#ifdef NO_PTHREADS
539 if (sigprocmask(SIG_SETMASK, &as->old, NULL))
540 die_errno("sigprocmask");
541#else
542 CHECK_BUG(pthread_setcancelstate(as->cs, NULL),
543 "re-enabling cancellation");
544 CHECK_BUG(pthread_sigmask(SIG_SETMASK, &as->old, NULL),
545 "restoring signal mask");
546#endif
547}
548
549#endif /* GIT_WINDOWS_NATIVE */
550

Callers 1

start_commandFunction · 0.85

Calls 3

sigprocmaskFunction · 0.85
die_errnoFunction · 0.85
pthread_sigmaskFunction · 0.85

Tested by

no test coverage detected