summaryrefslogtreecommitdiffstats
path: root/move/tools/busy-files
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-07-11 06:21:35 +0000
committerMystery Man <unknown@mandriva.org>2005-07-11 06:21:35 +0000
commite7e8874c1e8a190504398f630cd64d8915ca91fd (patch)
treefc8d33e7b3132cc1fb9082d1dec76aee45c7a7c3 /move/tools/busy-files
parentec1a5b3ef5968d94ead5db08b5e67a0a3c3badaf (diff)
downloaddrakx-e7e8874c1e8a190504398f630cd64d8915ca91fd.tar
drakx-e7e8874c1e8a190504398f630cd64d8915ca91fd.tar.gz
drakx-e7e8874c1e8a190504398f630cd64d8915ca91fd.tar.bz2
drakx-e7e8874c1e8a190504398f630cd64d8915ca91fd.tar.xz
drakx-e7e8874c1e8a190504398f630cd64d8915ca91fd.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_34mdk
'V10_3_0_34mdk'.
Diffstat (limited to 'move/tools/busy-files')
-rwxr-xr-xmove/tools/busy-files25
1 files changed, 0 insertions, 25 deletions
diff --git a/move/tools/busy-files b/move/tools/busy-files
deleted file mode 100755
index 7426e785a..000000000
--- a/move/tools/busy-files
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-
-my @pids = grep { $_ ne $$ && /^(\d+)$/ } all('/proc');
-
-my @l = map {
- grep {
- $_ && !m!^(/proc/|/dev/|pipe:|socket:)!;
- } map { readlink($_) } "/proc/$_/exe", glob_("/proc/$_/fd/*");
-} @pids;
-
-push @l, grep { $_ } map { (split)[5] } map { cat_("/proc/$_/maps") } @pids;
-
-if ($ARGV[0] eq '--totem') {
- @l = grep { m!/(image(_boot)?|cdrom)/! } @l;
- $ARGV[0] = '--server';
-}
-foreach (uniq @l) {
- if ($ARGV[0] eq '--server') {
- s!/image(_always|_boot|_totem)?/!/tmp/live_tree/!;
- s!/cdrom/live_tree!/tmp/live_tree!;
- }
- print "$_\n";
-}