Browse Source

Check for pid in send_recv_proc as well

master
Con Kolivas 10 years ago
parent
commit
316ceba75b
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -549,6 +549,8 @@ char *_send_recv_proc(proc_instance_t *pi, const char *msg, const char *file, co
LOGERR("Attempted to send null message to socket %s in send_proc", path); LOGERR("Attempted to send null message to socket %s in send_proc", path);
goto out; goto out;
} }
if (unlikely(!pi->pid))
pi->pid = get_proc_pid(pi);
if (unlikely(kill_pid(pi->pid, 0))) { if (unlikely(kill_pid(pi->pid, 0))) {
LOGALERT("Attempting to send message %s to dead process %s", msg, pi->processname); LOGALERT("Attempting to send message %s to dead process %s", msg, pi->processname);
goto out; goto out;

Loading…
Cancel
Save