[patch] applied: bterm

1 view
Skip to first unread message

9cha...@cat-v.org

unread,
Apr 30, 2008, 4:42:05 PM4/30/08
to plan9c...@googlegroups.com
Created Apr 30 14:42 by quanstro
Processed Apr 30 20:42 by geoff

have Bterm return an error if it can't flush its buffer.

--
/sys/src/libbio/binit.c
binit.c.orig:124,136 - /n/sources/patch/applied/bterm/binit.c:124,137
int
Bterm(Biobufhdr *bp)
{
+ int r;

deinstall(bp);
- Bflush(bp);
+ r = Bflush(bp);
if(bp->flag == Bmagic) {
bp->flag = 0;
close(bp->fid);
free(bp);
}
- return 0;
+ return r;
}

Reply all
Reply to author
Forward
0 new messages