Bug#405782: [xserver-xorg] "dpkg-reconfigure xserver-xorg" stuck
reassign 405782 x11-common
tag 405782 + patch
thanks
> Then, in the resulting file, we can see at some point a
> /tmp/dexconf-tmp-27788/.nfs0001403c00000317, which disappears immediately.
>
> If I'm not mistaken, it happens on a NFS share when we delete a file
> which is still open, doesn't it ? That seems to be a lead (at least I
> hope).
>
Ok great, thanks. I have reproduced the problem with a chroot and a
locally-nfs-mounted /tmp. The problem is caused by /usr/bin/dexconf not
closing a redirection before exiting. File descriptor 4 was kept open,
pointing to /tmp/dexconf-tmp-xxxx/DRI. Adding exec 4<&- solves the
problem. Patch attached.
Brice
---
debian/local/dexconf | 3 +++
1 file changed, 3 insertions(+)
Index: xorg-7.1.0/debian/local/dexconf
===================================================================
--- xorg-7.1.0.orig/debian/local/dexconf 2007-01-06 17:50:41.000000000 +0100
+++ xorg-7.1.0/debian/local/dexconf 2007-01-06 17:53:11.000000000 +0100
@@ -414,6 +414,9 @@
EndSection
SECTION
+# Close file descriptor 4 before we delete temporary files
+exec 4<&-
+
# Tell debconf to stop listening to us.
db_stop
Reply to: