From 92508e06a18c98750489df7c21635613ee41d160 Mon Sep 17 00:00:00 2001 From: Nathan Toone Date: Fri, 19 Apr 2019 22:16:20 -0600 Subject: [PATCH] Use SIGTERM instead of `-15`. --- include/boost/process/detail/posix/wait_for_exit.hpp | 2 +- include/boost/process/detail/posix/wait_group.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/process/detail/posix/wait_for_exit.hpp b/include/boost/process/detail/posix/wait_for_exit.hpp index 5eadc972..16fbacfc 100644 --- a/include/boost/process/detail/posix/wait_for_exit.hpp +++ b/include/boost/process/detail/posix/wait_for_exit.hpp @@ -125,7 +125,7 @@ inline bool wait_until( ~child_cleaner_t() { int res; - ::kill(pid, -15); + ::kill(pid, SIGTERM); ::waitpid(pid, &res, WNOHANG); } }; diff --git a/include/boost/process/detail/posix/wait_group.hpp b/include/boost/process/detail/posix/wait_group.hpp index 2502d977..fc6870d0 100644 --- a/include/boost/process/detail/posix/wait_group.hpp +++ b/include/boost/process/detail/posix/wait_group.hpp @@ -129,7 +129,7 @@ inline bool wait_until( ~child_cleaner_t() { int res; - ::kill(pid, -15); + ::kill(pid, SIGTERM); ::waitpid(pid, &res, WNOHANG); } };