2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

Merge pull request #197 from toonetown/fix-wait_for-fork-macOS

Use SIGTERM instead of `-15`.
This commit is contained in:
Klemens Morgenstern
2019-04-20 15:39:54 +07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ inline bool wait_until(
~child_cleaner_t()
{
int res;
::kill(pid, -15);
::kill(pid, SIGTERM);
::waitpid(pid, &res, WNOHANG);
}
};

View File

@@ -129,7 +129,7 @@ inline bool wait_until(
~child_cleaner_t()
{
int res;
::kill(pid, -15);
::kill(pid, SIGTERM);
::waitpid(pid, &res, WNOHANG);
}
};