Skip to content

Commit

Permalink
kyua: int -> pid_t
Browse files Browse the repository at this point in the history
  • Loading branch information
ihoro committed May 7, 2024
1 parent b51608b commit 4b3ba28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contrib/kyua/engine/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ struct test_exec_data : public exec_data {
///
/// This is used for the cleanup upon termination by a signal, to reap the
/// leftovers and form missing exit_handle.
int pid;
pid_t pid;

/// The exit_handle for this test once it has completed.
///
Expand All @@ -241,7 +241,7 @@ struct test_exec_data : public exec_data {
const std::string& test_case_name_,
const std::shared_ptr< scheduler::interface > interface_,
const config::tree& user_config_,
const int pid_) :
const pid_t pid_) :
exec_data(test_program_, test_case_name_),
interface(interface_), user_config(user_config_), pid(pid_)
{
Expand Down
2 changes: 1 addition & 1 deletion contrib/kyua/utils/process/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ struct utils::process::executor::executor_handle::impl : utils::noncopyable {
}

executor::exit_handle
reap(const int original_pid)
reap(const pid_t original_pid)
{
const exec_handles_map::iterator iter = all_exec_handles.find(
original_pid);
Expand Down
2 changes: 1 addition & 1 deletion contrib/kyua/utils/process/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class executor_handle {

exit_handle wait(const exec_handle);
exit_handle wait_any(void);
exit_handle reap(const int);
exit_handle reap(const pid_t);

void check_interrupt(void) const;
};
Expand Down

0 comments on commit 4b3ba28

Please sign in to comment.