Project

General

Profile

Bug #7423

epoll_ctl should throw EINVAL for loops

Added by Robert Mustacchi over 4 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The libc shim for epoll should convert the ELOOP emitted by /dev/poll into EINVAL to stay true to the expectations set forth by Linux.

#1

Updated by Electric Monk over 4 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