plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 962d5a8b6957484cf2289d0cf53a8e068f63cb1b
parent a380a0033d4d5abda7d74d4ae437c806b57412bf
Author: Russ Cox <rsc@swtch.com>
Date:   Fri,  4 Jul 2008 12:39:01 -0400

devdraw: double-check write return value on OS X

Diffstat:
Msrc/cmd/devdraw/osx-srv.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cmd/devdraw/osx-srv.c b/src/cmd/devdraw/osx-srv.c @@ -311,7 +311,8 @@ replymsg(Wsysmsg *m) nmbuf = n; } convW2M(m, mbuf, n); - write(4, mbuf, n); + if(write(4, mbuf, n) != n) + sysfatal("write: %r"); } /*