File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -902,7 +902,6 @@ class Streams
902
902
* Command provided in a single string.
903
903
* wait() - Wait for the child to exit.
904
904
* retcode() - The return code of the exited child.
905
- * pid() - PID of the spawned child.
906
905
* poll() - Check the status of the running child.
907
906
* send(...) - Send input to the input channel of the child.
908
907
* communicate(...) - Get the output/error from the child and close the channels
@@ -956,8 +955,6 @@ class Popen
956
955
execute_process ();
957
956
}
958
957
959
- int pid () const noexcept { return child_pid_; }
960
-
961
958
int retcode () const noexcept { return retcode_; }
962
959
963
960
int wait () noexcept (false );
@@ -1068,7 +1065,7 @@ inline int Popen::wait() noexcept(false)
1068
1065
return 0 ;
1069
1066
#else
1070
1067
int ret, status;
1071
- std::tie (ret, status) = util::wait_for_child_exit (pid () );
1068
+ std::tie (ret, status) = util::wait_for_child_exit (child_pid_ );
1072
1069
if (ret == -1 ) {
1073
1070
if (errno != ECHILD) throw OSError (" waitpid failed" , errno);
1074
1071
return 0 ;
You can’t perform that action at this time.
0 commit comments