171
172
173
174
175
176
177
178
179
180
181
182
183
|
/*
** Close the connection to a child process previously created using
** popen2(). Kill off the child process, then close the pipes.
*/
void pclose2(int fdIn, FILE *pOut, int childPid){
#ifdef __MINGW32__
/* Not implemented, yet */
#else
close(fdIn);
fclose(pOut);
kill(childPid, SIGINT);
#endif
}
|
>
>
|
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
/*
** Close the connection to a child process previously created using
** popen2(). Kill off the child process, then close the pipes.
*/
void pclose2(int fdIn, FILE *pOut, int childPid){
#ifdef __MINGW32__
/* Not implemented, yet */
close(fdIn);
fclose(pOut);
#else
close(fdIn);
fclose(pOut);
kill(childPid, SIGINT);
#endif
}
|