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.

** Attachment added: "Updated patch"
   
https://bugs.launchpad.net/ubuntu/+source/apt-cacher/+bug/882874/+attachment/2656221/+files/apt-cacher-childpids-bug-patch2.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/882874

Title:
  apt-cacher has poor childpid management

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-cacher/+bug/882874/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to