diff options
author | Mystery Man <unknown@mandriva.org> | 2005-04-18 16:36:44 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2005-04-18 16:36:44 +0000 |
commit | 35e5f2f79e49312d8f28826fc5b158ab66e6a318 (patch) | |
tree | f40ddbf276a4b78880fb1380783cd8433e7724a3 /move/tools/busy-files | |
parent | 25a36c46a23bb0eb8c30ee1fbfb8bbdb8743f879 (diff) | |
download | drakx-35e5f2f79e49312d8f28826fc5b158ab66e6a318.tar drakx-35e5f2f79e49312d8f28826fc5b158ab66e6a318.tar.gz drakx-35e5f2f79e49312d8f28826fc5b158ab66e6a318.tar.bz2 drakx-35e5f2f79e49312d8f28826fc5b158ab66e6a318.tar.xz drakx-35e5f2f79e49312d8f28826fc5b158ab66e6a318.zip |
This commit was manufactured by cvs2svn to create branch
'MDK-10_2-update'.
Diffstat (limited to 'move/tools/busy-files')
-rwxr-xr-x | move/tools/busy-files | 25 |
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"; -} |