diff --git a/src/util/subprocess.h b/src/util/subprocess.h index e90c165205e..e261215cc50 100644 --- a/src/util/subprocess.h +++ b/src/util/subprocess.h @@ -1024,6 +1024,9 @@ private: #ifdef __USING_WINDOWS__ HANDLE process_handle_; std::future cleanup_future_; +#else + // Pid of the child process + int child_pid_ = -1; #endif std::string exe_name_; @@ -1034,9 +1037,6 @@ private: std::vector vargs_; std::vector cargv_; - // Pid of the child process - int child_pid_ = -1; - int retcode_ = -1; };