X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2FBackupPC_trashClean;h=43abbf650361db737615983237d53a5ac11059ef;hb=e4a233559926fe41888b2f6c5cc716401b715162;hp=08815d223b2223ede8fa439af3ae999fc959bc0a;hpb=e9453b7611be63303572ae443d5fb56b73364678;p=BackupPC.git diff --git a/bin/BackupPC_trashClean b/bin/BackupPC_trashClean index 08815d2..43abbf6 100755 --- a/bin/BackupPC_trashClean +++ b/bin/BackupPC_trashClean @@ -29,7 +29,7 @@ # #======================================================================== # -# Version 1.6.0_CVS, released 10 Dec 2002. +# Version 2.0.0beta2, released 13 Apr 2003. # # See http://backuppc.sourceforge.net. # @@ -51,7 +51,9 @@ $bpc->ChildInit(); ########################################################################### while ( 1 ) { print("processState running\n"); - 1 while ( $bpc->RmTreeTrashEmpty("$TopDir/trash") ); + if ( $bpc->RmTreeTrashEmpty("$TopDir/trash") < 0 ) { + print("log BackupPC_trashClean failed to empty $TopDir/trash\n"); + } print("processState idle\n"); sleep($Conf{TrashCleanSleepSec} || 300); }