GNU bug report logs - #24756
26.0.50; Emacs should not use pselect

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Fri, 21 Oct 2016 15:42:01 UTC

Severity: wishlist

Found in version 26.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 24756 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: 24756 <at> debbugs.gnu.org
Subject: Re: bug#24756: 26.0.50; Emacs should not use pselect
Date: Tue, 25 Oct 2016 11:45:22 +0000
[Message part 1 (text/plain, inline)]
Philipp Stephani <p.stephani2 <at> gmail.com> schrieb am Fr., 21. Okt. 2016 um
17:42 Uhr:

>
> Emacs uses pselect for IO multiplexing, limiting the number of available
> file descriptors to FD_SETSIZE.  Rather, epoll/kqueue should be used, if
> available.
>
>
Some good counter-arguments were brought up:
- pselect is in the POSIX standard, whereas the possible replacements
(ppoll/epoll/kqueue) are not.
- The file descriptor limit should only be hit in pathological cases, e.g.
when leaking background processes, and is only a symptom of a bug somewhere
else. A higher FD limit would only hide the symptom, but not fix the
underlying root cause.

Given that, I'm no longer convinced that switching away from pselect would
be a good idea (but I'll leave this bug open for now to provide a space for
discussion).
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 273 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.