Skip to content

Commit

Permalink
FIX: fix the problem of sending the wrong signal.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixingchen0629 authored and klemens-morgenstern committed Jun 4, 2024
1 parent 0379ee6 commit ff5b383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/boost/process/v2/detail/process_handle_signal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ struct basic_process_handle_signal
{
if (pid_ <= 0)
return;
if (::kill(pid_, SIGTERM) == -1)
if (::kill(pid_, SIGINT) == -1)
ec = get_last_error();
}

Expand Down Expand Up @@ -194,7 +194,7 @@ struct basic_process_handle_signal
{
if (pid_ <= 0)
return;
if (::kill(pid_, SIGCONT) == -1)
if (::kill(pid_, SIGSTOP) == -1)
ec = get_last_error();
}

Expand All @@ -212,7 +212,7 @@ struct basic_process_handle_signal
{
if (pid_ <= 0)
return;
if (::kill(pid_, SIGTERM) == -1)
if (::kill(pid_, SIGCONT) == -1)
ec = get_last_error();
}

Expand Down

0 comments on commit ff5b383

Please sign in to comment.