[Namazu-users-en] Re: No space available silent fail

Tadamasa Teranishi yw3t-trns at asahi-net.or.jp
Sat Aug 4 15:59:58 JST 2007


Felipe Sanchez wrote:
> 
> As you can see, there was no indication whatsoever about any errors while
> building the index. Specially, there was no "no space available"
> notification.

Thank you for the report. 

It is corrected with the following patch. 

--- pl/util.pl.org      2006-02-06 03:53:30.000000000 +0900
+++ pl/util.pl  2007-08-04 15:56:34.000000000 +0900
@@ -72,6 +72,8 @@ sub fclose ($) {
     if (ref $arg) {
         if ($arg =~ /^(IO::File|FileHandle)/) {
             my $fh = $arg;
+            $fh->flush;
+            cdie("write error: $!\n") if ($fh->error);
             $fh->close();
             return undef;
         }

-- 
=====================================================================
TADAMASA TERANISHI  yw3t-trns �� asahi-net.or.jp
http://www.asahi-net.or.jp/~yw3t-trns/index.htm
Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E



More information about the Namazu-users-en mailing list