Comment 3 for bug 882874

Revision history for this message
Craig Miskell (3-crjig-7) wrote :

Slightly modified patch attached; deleting the childPid entry caused a rather odd perl panic:

Sun Jan 1 19:11:13 2012|error [24236]: panic: attempt to copy value 1 to a freed scalar 107bfa8 at /usr/sbin/apt-cacher line 1912.

Looks like some sort of child/parent race condition that is well beyond my ken. Setting the value to 0 instead of deleting, and checking for "1" in the kill loop seems to avoid the issue.