Skip to content

Commit

Permalink
FIX: fix the posix terminate function implement.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixingchen0629 committed May 28, 2024
1 parent 7566c05 commit 283e55d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/process/v2/detail/process_handle_fd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ struct basic_process_handle_fd
return;
if (::kill(pid_, SIGKILL) == -1)
ec = get_last_error();
else
wait(exit_status, ec);
}

void terminate(native_exit_code_type &exit_status)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ struct basic_process_handle_fd_or_signal
return;
if (::kill(pid_, SIGKILL) == -1)
ec = get_last_error();
else
wait(exit_status, ec);
}

void terminate(native_exit_code_type &exit_status)
Expand Down
2 changes: 2 additions & 0 deletions include/boost/process/v2/detail/process_handle_signal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ struct basic_process_handle_signal
return;
if (::kill(pid_, SIGKILL) == -1)
ec = get_last_error();
else
wait(exit_status, ec);
}

void terminate(native_exit_code_type &exit_status)
Expand Down

0 comments on commit 283e55d

Please sign in to comment.