[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 16bb108: Add a regression test for Bug#24325.
From: |
Robert Pluim |
Subject: |
Re: master 16bb108: Add a regression test for Bug#24325. |
Date: |
Mon, 04 Jan 2021 18:24:23 +0100 |
Philipp Stephani <p.stephani2@gmail.com> writes:
> Am Di., 29. Dez. 2020 um 18:56 Uhr schrieb Michael Albinus
> <michael.albinus@gmx.de>:
>>
>> p.stephani2@gmail.com (Philipp Stephani) writes:
>>
>> Hi Philipp,
>>
>> > +(ert-deftest process-tests/fd-setsize-no-crash ()
>> > + "Check that Emacs doesn't crash when trying to use more than
>> > +FD_SETSIZE file descriptors (Bug#24325)."
>> > + (let ((sleep (executable-find "sleep"))
>> > + ;; FD_SETSIZE is typically 1024 on Unix-like systems.
>> > + (fd-setsize 1024)
>>
>> This could be determined by "ulimit -n" or "getconf OPEN_MAX".
>>
>
> That's a different limit (resource limit vs. size of a file descriptor set).
Itʼs possible to raise FD_SETSIZE at compile time on macOS (to 4096 if
memory serves), so the only reliable way to test this is to expose
FD_SETSIZE to lisp. poll(2) anyone? ;-)
Robert
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: master 16bb108: Add a regression test for Bug#24325.,
Robert Pluim <=