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

Function child_die

run-command.c:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326};
327
328static void child_die(enum child_errcode err)
329{
330 struct child_err buf;
331
332 buf.err = err;
333 buf.syserr = errno;
334
335 /* write(2) on buf smaller than PIPE_BUF (min 512) is atomic: */
336 xwrite(child_notifier, &buf, sizeof(buf));
337 _exit(1);
338}
339
340static void child_dup2(int fd, int to)
341{

Callers 3

child_dup2Function · 0.85
child_closeFunction · 0.85
start_commandFunction · 0.85

Calls 1

xwriteFunction · 0.85

Tested by

no test coverage detected