O'Reilly logo
  • Mayuresh Gharat thinks this is interesting:

write as issued would normally block, the write() system call returns −1 and sets errno to EAGAIN.

From

Cover of Linux System Programming, 2nd Edition

Note

if the write is going to block, then it would return -1 and the errno.