aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/cloud/minioprocess.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-04-01 14:05:11 +0200
committerGitHub Enterprise <[email protected]>2026-04-01 14:05:11 +0200
commit7c4d98f09e1129ed3f7e188fdc31c305f919b2c5 (patch)
tree98ee6187024e7cc43b539754c7f1f9db47725dd2 /src/zenutil/cloud/minioprocess.cpp
parentconsul env token refresh (#912) (diff)
downloadzen-7c4d98f09e1129ed3f7e188fdc31c305f919b2c5.tar.xz
zen-7c4d98f09e1129ed3f7e188fdc31c305f919b2c5.zip
fix fork() issues on linux and MacOS (#910)
- Improvement: Hub child process spawning on macOS now uses `posix_spawn` in line with Apple recommendations - Bugfix: Hub child process spawning on Linux now uses `vfork` instead of `fork`, preventing ENOMEM failures on systems with strict memory overcommit (`vm.overcommit_memory=2`) - Bugfix: Fixed process group management on POSIX; child processes were not placed into the correct process group, breaking group-wide signal delivery
Diffstat (limited to 'src/zenutil/cloud/minioprocess.cpp')
-rw-r--r--src/zenutil/cloud/minioprocess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenutil/cloud/minioprocess.cpp b/src/zenutil/cloud/minioprocess.cpp
index 457453bd8..e146f6677 100644
--- a/src/zenutil/cloud/minioprocess.cpp
+++ b/src/zenutil/cloud/minioprocess.cpp
@@ -45,7 +45,7 @@ struct MinioProcess::Impl
}
CreateProcOptions Options;
- Options.Flags |= CreateProcOptions::Flag_Windows_NewProcessGroup;
+ Options.Flags |= CreateProcOptions::Flag_NewProcessGroup;
Options.Environment.emplace_back("MINIO_ROOT_USER", m_Options.RootUser);
Options.Environment.emplace_back("MINIO_ROOT_PASSWORD", m_Options.RootPassword);