summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-17 13:45:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-17 13:45:27 +0000
commit473d578f40fba004fea9d5d14cb598d70ebc7038 (patch)
treee783bcded98295e40299a730966863dfce09ab1d
parenta2e976db822a61db94175698f870d2a884183a0f (diff)
downloaddrakx-473d578f40fba004fea9d5d14cb598d70ebc7038.tar
drakx-473d578f40fba004fea9d5d14cb598d70ebc7038.tar.gz
drakx-473d578f40fba004fea9d5d14cb598d70ebc7038.tar.bz2
drakx-473d578f40fba004fea9d5d14cb598d70ebc7038.tar.xz
drakx-473d578f40fba004fea9d5d14cb598d70ebc7038.zip
don't log busy files on tty3, but on stderr
(allow busy-files like usage)
-rwxr-xr-xmove/tree/mdk_totem9
1 files changed, 3 insertions, 6 deletions
diff --git a/move/tree/mdk_totem b/move/tree/mdk_totem
index 76bc43ec5..5224e154f 100755
--- a/move/tree/mdk_totem
+++ b/move/tree/mdk_totem
@@ -39,12 +39,9 @@ sub remove_simple_daemons {
my $in = interactive->vnew;
if (my @busy = remove_simple_daemons(busy_pids_and_files())) {
- { #- log it
- open(my $LOG, '| sudo sh -c "cat > /dev/tty3"');
- print $LOG '*' x 80, "\n";
- print $LOG join("\n", "$_->{exe} ($_->{cmdline}) =>", map { " $_" } @{$_->{files}}) . "\n" foreach @busy;
- print $LOG '*' x 80, "\n";
- }
+ warn '*' x 80, "\n";
+ warn join("\n", "$_->{exe} ($_->{cmdline}) =>", map { " $_" } @{$_->{files}}) . "\n" foreach @busy;
+ warn '*' x 80, "\n";
my @progs = map {
my $s = $_->{cmdline};