Skip to content

Commit

Permalink
FIX: fix the function call with error code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixingchen0629 authored and klemens-morgenstern committed Jul 4, 2024
1 parent 2c37246 commit 414d0d6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/boost/process/v2/posix/default_launcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ struct default_launcher
Args && args,
Inits && ... inits ) -> basic_process<typename ExecutionContext::executor_type>
{
return (*this)(context.get_executor(), executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
return (*this)(context.get_executor(), ec, executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
}

template<typename Executor, typename Args, typename ... Inits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct fork_and_forget_launcher : default_launcher
Args && args,
Inits && ... inits ) -> basic_process<typename ExecutionContext::executor_type>
{
return (*this)(context.get_executor(), executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
return (*this)(context.get_executor(), ec, executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
}

template<typename Executor, typename Args, typename ... Inits>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/process/v2/posix/pdfork_launcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct pdfork_launcher : default_launcher
Args && args,
Inits && ... inits ) -> basic_process<typename ExecutionContext::executor_type>
{
return (*this)(context.get_executor(), executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
return (*this)(context.get_executor(), ec, executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
}

template<typename Executor, typename Args, typename ... Inits>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/process/v2/posix/vfork_launcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct vfork_launcher : default_launcher
Args && args,
Inits && ... inits ) -> basic_process<typename ExecutionContext::executor_type>
{
return (*this)(context.get_executor(), executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
return (*this)(context.get_executor(), ec, executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
}

template<typename Executor, typename Args, typename ... Inits>
Expand Down
4 changes: 2 additions & 2 deletions include/boost/process/v2/windows/as_user_launcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct as_user_launcher : default_launcher
Args && args,
Inits && ... inits ) -> basic_process<typename ExecutionContext::executor_type>
{
return (*this)(context.get_executor(), executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
return (*this)(context.get_executor(), ec, executable, std::forward<Args>(args), std::forward<Inits>(inits)...);
}

template<typename Executor, typename Args, typename ... Inits>
Expand Down Expand Up @@ -133,4 +133,4 @@ struct as_user_launcher : default_launcher
}
BOOST_PROCESS_V2_END_NAMESPACE

#endif // BOOST_PROCESS_V2_WINDOWS_AS_USER_LAUNCHER_HPP
#endif // BOOST_PROCESS_V2_WINDOWS_AS_USER_LAUNCHER_HPP

0 comments on commit 414d0d6

Please sign in to comment.