The patch below seems to deal with this bug.

Ben.

--- update-inetd-4.36/DebianNet.pm      2010-02-13 17:43:54.000000000 +0000
+++ update-inetd-4.36+nmu1/DebianNet.pm 2010-08-09 04:18:44.000000000 +0100
@@ -323,7 +323,13 @@
             &printv("About to $action inetd via invoke-rc.d\n");
             my $service = $1;
             unless ($fake_invocation) {
-                system("invoke-rc.d $service $action >/dev/null");
+               # If we were called by a shell script that also uses
+               # debconf, the pipe to the debconf frontend is fd 3 as
+               # well as fd 1 (stdout).  Ensure that fd 3 is not
+               # inherited by invoke-rc.d and inetd, as that will
+               # cause debconf to hang (bug #589487).  Don't let them
+               # confuse debconf via stdout either.
+                system("invoke-rc.d $service $action >/dev/null 3>&-");
             }
         }
     }
--- END ---

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to