Lines Matching refs:childpid
919 pid_t childpid; in rdbSaveBackground() local
928 if ((childpid = fork()) == 0) { in rdbSaveBackground()
950 if (childpid == -1) { in rdbSaveBackground()
956 serverLog(LL_NOTICE,"Background saving started by pid %d",childpid); in rdbSaveBackground()
958 server.rdb_child_pid = childpid; in rdbSaveBackground()
966 void rdbRemoveTempFile(pid_t childpid) { in rdbRemoveTempFile() argument
969 snprintf(tmpfile,sizeof(tmpfile),"temp-%d.rdb", (int) childpid); in rdbRemoveTempFile()
1585 pid_t childpid; in rdbSaveToSlavesSockets() local
1625 if ((childpid = fork()) == 0) { in rdbSaveToSlavesSockets()
1696 if (childpid == -1) { in rdbSaveToSlavesSockets()
1719 childpid); in rdbSaveToSlavesSockets()
1721 server.rdb_child_pid = childpid; in rdbSaveToSlavesSockets()
1727 return (childpid == -1) ? C_ERR : C_OK; in rdbSaveToSlavesSockets()