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 authored and klemens-morgenstern committed Jun 4, 2024
1 parent ff5b383 commit a26f4fe
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 a26f4fe

Please sign in to comment.