kern/126076: POLL_ERR and POLL_HUP are defined identically
Petr Salinger
Petr.Salinger at seznam.cz
Tue Jul 29 14:40:01 UTC 2008
>Number: 126076
>Category: kern
>Synopsis: POLL_ERR and POLL_HUP are defined identically
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 29 14:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Petr Salinger
>Release: 7.0
>Organization:
>Environment:
>Description:
POLL_ERR and POLL_HUP are defined in <sys/signal.h>, they both have the same value (4). I doubt whether it is deliberate or not. It looks more like a typo.
The same value causes problems for "case POLL_ERR:", "case POLL_HUP:" handling.
It doesn't look like kernel generates these codes so far.
>How-To-Repeat:
>Fix:
#define POLL_HUP 6 /* Device disconnected */
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list