kernel - Change closefrom() EINTR behavior
commit242ef4e8145eb20bac1e3d4554a1c2d627889dae
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 20 May 2018 05:58:58 +0000 (19 22:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 20 May 2018 05:58:58 +0000 (19 22:58 -0700)
tree89c082f20766aabebd7ecd36036926e7e8f61f03
parentcaf51c5f0a18284ecd0ccf3982f264f05dfff35a
kernel - Change closefrom() EINTR behavior

* closefrom() no longer breaks out of its loop if it gets an
  EINTR from a close().  EINTR can only occur from NFS in this
  situation, and the descriptor is still closed.  Any EINTR's
  which occur will be rolled up and returned after the loop
  completes.

* Callers usually ignore closefrom()'s return value anyway.

Suggested-by: mjg
sys/kern/kern_descrip.c