mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
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;
|
||||
}
|
||||
convW2M(m, mbuf, n);
|
||||
write(4, mbuf, n);
|
||||
if(write(4, mbuf, n) != n)
|
||||
sysfatal("write: %r");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue