Skip to content

Conversation

@jrosdahl
Copy link

@jrosdahl jrosdahl commented Dec 4, 2025

The _SC_NPROCESSORS_ONLN macro is only available when including unistd.h, so the code that calculates the default of maxjobs from number of logical processors is never executed. It looks like this stopped working in 67435a3 "Separate out most OS-specific functions into os-posix.c".

Fix this by moving the sysconf call into os-posix.c, similar to other OS specifics.

The _SC_NPROCESSORS_ONLN macro is only available when including
unistd.h, so the code that calculates the default of maxjobs from number
of logical processors is never executed. It looks like this stopped
working in 67435a3 "Separate out most OS-specific functions into
os-posix.c".

Fix this by moving the sysconf call into os-posix.c, similar to other OS
specifics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant