Commit 056a481
committed
respect the reported number of bytes written
write() is blocking, but apparently may still not write the
entire requested block (for various reasons). It is safest to
NOT assume it wrote everything, and instead check the return
value for the number of bytes actually written.1 parent 01d2645 commit 056a481
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
| 494 | + | |
| 495 | + | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
| |||
0 commit comments