diff options
-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"); } /* |