Fixed UV_THREADPOOL_SIZE setting
putenv can't use stack buffer
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ private:
|
|||||||
|
|
||||||
const uint32_t N = std::min(std::max(std::thread::hardware_concurrency(), 4U), 8U);
|
const uint32_t N = std::min(std::max(std::thread::hardware_concurrency(), 4U), 8U);
|
||||||
|
|
||||||
char buf[40] = {};
|
static char buf[40] = {};
|
||||||
log::Stream s(buf);
|
log::Stream s(buf);
|
||||||
s << "UV_THREADPOOL_SIZE=" << N << '\0';
|
s << "UV_THREADPOOL_SIZE=" << N << '\0';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user