kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ea7ea488401a0eadc3ba3d3c69fc46da1b990410
parent 9d9e9dcec28b4b8ef86edf7054aa86127411043c
Author: Joris Vink <joris@coders.se>
Date:   Thu, 25 Oct 2018 19:31:48 +0200

actually just query for HW_NCPU on all BSDs.

Diffstat:
src/bsd.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/bsd.c b/src/bsd.c @@ -48,7 +48,6 @@ static char pledges[256] = { "stdio rpath inet error" }; void kore_platform_init(void) { -#if defined(__MACH__) || defined(__FreeBSD_version) long n; size_t len = sizeof(n); int mib[] = { CTL_HW, HW_NCPU }; @@ -59,9 +58,6 @@ kore_platform_init(void) } else { cpu_count = (u_int16_t)n; } -#else - cpu_count = 1; -#endif /* __MACH__ || __FreeBSD_version */ } void