summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-20 21:39:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-20 21:39:42 +0000
commit3bf16f03f175977c27e53a079282dcae510cf023 (patch)
tree84fe01188960ba2700f0846efdfe0c12f60e95a3 /perl-install/install_any.pm
parentaca82933f767631f6ffc965536d727e208275915 (diff)
downloaddrakx-3bf16f03f175977c27e53a079282dcae510cf023.tar
drakx-3bf16f03f175977c27e53a079282dcae510cf023.tar.gz
drakx-3bf16f03f175977c27e53a079282dcae510cf023.tar.bz2
drakx-3bf16f03f175977c27e53a079282dcae510cf023.tar.xz
drakx-3bf16f03f175977c27e53a079282dcae510cf023.zip
(ejectCdrom): display "files still open:" for all processes when umounting fail
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 23d48cf13..c3f306424 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -470,7 +470,7 @@ sub ejectCdrom(;$) {
#- umount BEFORE opening the cdrom device otherwise the umount will
#- D state if the cdrom is already removed
eval { fs::umount("/tmp/image") };
- if ($@) { log::l("files still open: ", readlink($_)) foreach glob_("/proc/self/fd/*") }
+ if ($@) { log::l("files still open: ", readlink($_)) foreach map { glob_("$_/fd/*") } glob_("/proc/*") }
eval { ioctl detect_devices::tryOpen($cdrom), c::CDROMEJECT(), 1 };
}
}