devdraw: double-check write return value on OS X
This commit is contained in:
parent
a380a0033d
commit
962d5a8b69
1 changed files with 2 additions and 1 deletions
|
|
@ -311,7 +311,8 @@ replymsg(Wsysmsg *m)
|
||||||
nmbuf = n;
|
nmbuf = n;
|
||||||
}
|
}
|
||||||
convW2M(m, mbuf, n);
|
convW2M(m, mbuf, n);
|
||||||
write(4, mbuf, n);
|
if(write(4, mbuf, n) != n)
|
||||||
|
sysfatal("write: %r");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue