MCPcopy Index your code
hub / github.com/RsyncProject/rsync / do_fork

Function do_fork

util1.c:592–600  ·  view source on GitHub ↗

Fork and record the pid of the child. **/

Source from the content-addressed store, hash-verified

590
591/** Fork and record the pid of the child. **/
592pid_t do_fork(void)
593{
594 pid_t newpid = fork();
595
596 if (newpid != 0 && newpid != -1) {
597 all_pids[num_pids++] = newpid;
598 }
599 return newpid;
600}
601
602/**
603 * Kill all children.

Callers 3

piped_childFunction · 0.85
local_childFunction · 0.85
do_recvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected