From 3bf16f03f175977c27e53a079282dcae510cf023 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 20 Feb 2002 21:39:42 +0000 Subject: (ejectCdrom): display "files still open:" for all processes when umounting fail --- perl-install/install_any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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 }; } } -- cgit v1.2.1