URI: 
       tcomplain loudly about vtwrite failure - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 86190ea39d2f42af86b9a7ffefaf32f385040f5c
   DIR parent 4f6d2bb1e8e38aaeeeabb159272da19718bfb05d
  HTML Author: rsc <devnull@localhost>
       Date:   Sun,  8 Apr 2007 01:33:31 +0000
       
       complain loudly about vtwrite failure
       
       Diffstat:
         M src/cmd/vbackup/vbackup.c           |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/src/cmd/vbackup/vbackup.c b/src/cmd/vbackup/vbackup.c
       t@@ -450,8 +450,12 @@ myvtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
        {
                WriteReq wr;
        
       -        if(nwritethread == 0)
       -                return vtwrite(z, score, type, buf, n);
       +        if(nwritethread == 0){
       +                n = vtwrite(z, score, type, buf, n);
       +                if(n < 0)
       +                        sysfatal("vtwrite: %r");
       +                return n;
       +        }
        
                wr.p = packetalloc();
                packetappend(wr.p, buf, n);