summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2012-06-02 21:46:54 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2012-06-02 21:46:54 +0000
commit0cccd92d446927d81e05ad81565c51209265f470 (patch)
tree8fe3aa691847128343c301fac46da6db5651a5ae /sys/dev
parent0410f2b4b627b157e42002c1b1552d982a1f4772 (diff)
in imsg_read() avoid calling recvmsg() if we detect that we will be short
on descriptors, this can be achieved thanks to the new getdtablecount() system call. application may provide a reserve count to ensure that the recvmsg() call is not called when they don't have enough descriptors to work properly. change the API so that transient errors that can be retried immediately are retried within the function right away, whereas transient errors for which the application may want to take action will set errno to EAGAIN. ok deraadt@ and henning@
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions