From 473d578f40fba004fea9d5d14cb598d70ebc7038 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 17 Nov 2003 13:45:27 +0000 Subject: don't log busy files on tty3, but on stderr (allow busy-files like usage) --- move/tree/mdk_totem | 9 +++------ 1 file 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}; -- cgit v1.2.1