devdraw: double-check write return value on OS X

This commit is contained in:
Russ Cox 2008-07-04 12:39:01 -04:00
parent a380a0033d
commit 962d5a8b69

View file

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