Lines Matching refs:pid
256 pid_t pid; /* Script execution pid. */ member
688 sj->pid = 0; in sentinelScheduleScriptExecution()
715 listNode *sentinelGetScriptListNodeByPid(pid_t pid) { in sentinelGetScriptListNodeByPid() argument
723 if ((sj->flags & SENTINEL_SCRIPT_RUNNING) && sj->pid == pid) in sentinelGetScriptListNodeByPid()
743 pid_t pid; in sentinelRunPendingScripts() local
754 pid = fork(); in sentinelRunPendingScripts()
756 if (pid == -1) { in sentinelRunPendingScripts()
763 sj->pid = 0; in sentinelRunPendingScripts()
764 } else if (pid == 0) { in sentinelRunPendingScripts()
771 sj->pid = pid; in sentinelRunPendingScripts()
772 sentinelEvent(LL_DEBUG,"+script-child",NULL,"%ld",(long)pid); in sentinelRunPendingScripts()
797 pid_t pid; in sentinelCollectTerminatedScripts() local
799 while ((pid = wait3(&statloc,WNOHANG,NULL)) > 0) { in sentinelCollectTerminatedScripts()
807 (long)pid, exitcode, bysignal); in sentinelCollectTerminatedScripts()
809 ln = sentinelGetScriptListNodeByPid(pid); in sentinelCollectTerminatedScripts()
811 …L_WARNING,"wait3() returned a pid (%ld) we can't find in our scripts execution queue!", (long)pid); in sentinelCollectTerminatedScripts()
823 sj->pid = 0; in sentinelCollectTerminatedScripts()
855 sj->argv[0], (long)sj->pid); in sentinelKillTimedoutScripts()
856 kill(sj->pid,SIGKILL); in sentinelKillTimedoutScripts()
885 addReplyBulkLongLong(c,sj->pid); in sentinelPendingScriptsCommand()