Date: Tue, 29 Jul 2008 14:32:22 GMT From: Petr Salinger <Petr.Salinger@seznam.cz> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/126076: POLL_ERR and POLL_HUP are defined identically Message-ID: <200807291432.m6TEWMD2006313@www.freebsd.org> Resent-Message-ID: <200807291440.m6TEe15h062509@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807291432.m6TEWMD2006313>