Introduction
Introduction Statistics Contact Development Disclaimer Help
tcomplain loudly about vtwrite failure - plan9port - [fork] Plan 9 from user sp…
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 86190ea39d2f42af86b9a7ffefaf32f385040f5c
parent 4f6d2bb1e8e38aaeeeabb159272da19718bfb05d
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(-)
---
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,…
{
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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.