Project

General

Profile

Bug #7426

epoll_ctl not allowed to emit EINTR

Added by Robert Mustacchi about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
2016-09-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

It's possible that the write to /dev/poll during the native epoll_ctl(3C) will result in an EINTR. Since this is not documented in the Linux man page, it must be handled in libc by retrying the write.

History

#1

Updated by Electric Monk about 3 years ago

  • Status changed from New to Closed

git commit 57a0264b71e479ed0dc19299607d662043907cb6

commit  57a0264b71e479ed0dc19299607d662043907cb6
Author: Patrick Mooney <pmooney@pfmooney.com>
Date:   2016-10-11T15:01:08.000Z

    7422 dpioctl should pay attention to FKIOCTL
    7423 epoll_ctl should throw EINVAL for loops
    7424 epoll should not leave dangling polldat_t entries
    7425 devpoll write feigns success in the face of EINTR
    7426 epoll_ctl not allowed to emit EINTR
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Bryan Cantrill <bryan@joyent.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF