Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm noticing on hitch 1.4.4 on CentOS 7 that hitch doesn't correctly clean up prior processes went sent a -HUP.
This ends up stacking up over time, i.e. each reload of hitch causes another zombie process to stay around:
I noticed the same thing. On reconfigure, hitch kills the ocsp worker, and then starts a new one. By the time do_wait() is called, ocsp_proc_pid has the new worker pid, instead of the one that should be cleaned up.
I'm currently testing the removal of start_ocsp_proc(); from reconfigure and letting do_wait() do it's job once it receives a SIGCHLD for the kill.
I'm on Centos7 and I use kill -HUP for hot reloading of certificates (well, in fact I switched from pound to hitch mainly for this great feature).
I can confirm that since upgrading to hitch-1.4.4-2.el7.x86_64 I started seeing defunct processes. Previously I was on hitch-1.4.1-1.el7.x86_64 and never had defuct processes.