Lines Matching refs:cl_Pid
48 pid_t cl_Pid; /* running pid, 0, or armed (-1) */
85 #define EndJob(user, line) line->cl_Pid = 0
631 if (line->cl_Pid > 0) {
692 line->cl_Pid, line->cl_Shell);
695 if (line->cl_Pid > 0) {
698 } else if (line->cl_Pid == 0) {
699 line->cl_Pid = -1;
721 if (line->cl_Pid < 0) {
726 file->cf_User, line->cl_Pid, line->cl_Shell);
727 if (line->cl_Pid < 0) {
730 else if (line->cl_Pid > 0) {
757 if (line->cl_Pid > 0) {
759 int r = wait4(line->cl_Pid, &status, WNOHANG, NULL);
761 if (r < 0 || r == line->cl_Pid) {
763 if (line->cl_Pid) {
786 line->cl_Pid = pid;
815 line->cl_Pid = 0;
843 line->cl_Pid = 0;
875 if (line->cl_Pid <= 0) {
876 line->cl_Pid = 0;
885 snprintf(mailFile, sizeof(mailFile), TMPDIR "/cron.%s.%d", user, line->cl_Pid);
886 line->cl_Pid = 0;
944 line->cl_Pid = pid;