Skip to content

Poco::Process:launch on MacOS BigSur #3182

@tim2000

Description

@tim2000

Hi,

We came across a problem were when using Poco::Process::launch on a MacOS BigSur, this creates processes that takes 100% of the cpu core their running on.

In Process_UNIX.cpp l122 we have this for:
for (int i = 3; i < sysconf(_SC_OPEN_MAX); ++i)

It seems that sysconf(_SC_OPEN_MAX) is slow and return a very big value on this new OS, it's evaluated on each loop of the for so it takes ages and a lot of CPU to run.

This thread reports the same problem: warmcat/libwebsockets#2116

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions