diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-04 12:39:01 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-04 12:39:01 -0400 |
commit | 962d5a8b6957484cf2289d0cf53a8e068f63cb1b (patch) | |
tree | 778ba9507562a12d73b044f387e6cb9a972a3cac /src | |
parent | a380a0033d4d5abda7d74d4ae437c806b57412bf (diff) | |
download | plan9port-962d5a8b6957484cf2289d0cf53a8e068f63cb1b.tar.gz plan9port-962d5a8b6957484cf2289d0cf53a8e068f63cb1b.tar.bz2 plan9port-962d5a8b6957484cf2289d0cf53a8e068f63cb1b.zip |
devdraw: double-check write return value on OS X
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/devdraw/osx-srv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/devdraw/osx-srv.c b/src/cmd/devdraw/osx-srv.c index fc943d16..32450cd8 100644 --- 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"); } /* |