@@ -905,7 +905,6 @@ class Streams
905
905
* 4. retcode() - The return code of the exited child.
906
906
* 5. pid() - PID of the spawned child.
907
907
* 6. poll() - Check the status of the running child.
908
- * 7. kill(sig_num) - Kill the child. SIGTERM used by default.
909
908
* 8. send(...) - Send input to the input channel of the child.
910
909
* 9. communicate(...) - Get the output/error from the child and close the channels
911
910
* from the parent side.
@@ -966,10 +965,6 @@ class Popen
966
965
967
966
int poll () noexcept (false );
968
967
969
- // Does not fail, Caller is expected to recheck the
970
- // status with a call to poll()
971
- void kill (int sig_num = 9 );
972
-
973
968
void set_out_buf_cap (size_t cap) { stream_.set_out_buf_cap (cap); }
974
969
975
970
void set_err_buf_cap (size_t cap) { stream_.set_err_buf_cap (cap); }
@@ -1137,18 +1132,6 @@ inline int Popen::poll() noexcept(false)
1137
1132
#endif
1138
1133
}
1139
1134
1140
- inline void Popen::kill (int sig_num)
1141
- {
1142
- #ifdef __USING_WINDOWS__
1143
- if (!TerminateProcess (this ->process_handle_ , (UINT)sig_num)) {
1144
- throw OSError (" TerminateProcess" , 0 );
1145
- }
1146
- #else
1147
- ::kill (child_pid_, sig_num);
1148
- #endif
1149
- }
1150
-
1151
-
1152
1135
inline void Popen::execute_process () noexcept (false )
1153
1136
{
1154
1137
#ifdef __USING_WINDOWS__
0 commit comments