Skip to content

BigSur sysconf(3) #2116

@zbroyar

Description

@zbroyar

Hi,

After upgrade to the new version of OSX, BigSur, sysconf(_SC_OPEN_MAX) started to return unreasonably big number, - 9223372036854775807, - which leads to two problems:

  1. This value obviously does not fit into int context->max_fds
  2. Changing the type to proper long (sysconf(3) returns long) leads to the attempt to allocate 9223372036854775807 bytes during context creation

Looks like we have to limit the max_fds on OSX somehow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions