Re: poll(x, 0, -1) hangs

From: David Schwartz (davids_at_webmaster.com)
Date: 02/21/04


Date: Sat, 21 Feb 2004 14:17:10 -0800


"Timur Tabi" <nospam_timur@tabi.org> wrote in message
news:53bb806a.0402211404.238209d5@posting.google.com...

> When I call the poll() API with zero as the second parameter (the
> number of file descriptors that I'm passing), the poll() call hangs.
> It only returns when I send a signal to the thread. Is this what's
> supposed to happen?

    What behavior would you expect?

    DS



Relevant Pages

  • Re: poll(x, 0, -1) hangs
    ... >> number of file descriptors that I'm passing), the poll() call hangs. ...
    (comp.os.linux.development.system)
  • Re: experienced opinions
    ... Passing a bitmap of interesting file descriptors was a ... remark regarding descriptor numbers) ... OTOH with poll you have to manually maintain the array of pollfd structures ... you're passing in. ...
    (comp.unix.programmer)
  • poll(x, 0, -1) hangs
    ... number of file descriptors that I'm passing), the poll() call hangs. ...
    (comp.os.linux.development.system)
  • Re: [PATCH 2.4.33.2] enforce RLIMIT_NOFILE in poll()
    ... POSIX states that poll() shall fail with EINVAL if nfds> OPEN_MAX. ... up to 1024 file descriptors even if RLIMIT_NOFILE is less than 1024, ... Are you aware of some apps which do not work as expected ... I submitted a similar but different patch for this very same issue against ...
    (Linux-Kernel)
  • Re: [PATCH 2.4.33.2] enforce RLIMIT_NOFILE in poll()
    ... POSIX states that poll() shall fail with EINVAL if nfds> OPEN_MAX. ... up to 1024 file descriptors even if RLIMIT_NOFILE is less than 1024, ... I submitted a similar but different patch for this very same issue against the 2.6 kernel. ...
    (Linux-Kernel)