Differences From Artifact [053ac1614e]:
- File src/popen.c — part of check-in [d5c934e5df] at 2010-08-27 17:19:05 on branch trunk — Fix a typo in the popen2() implementation for windows. Ticket [cf50ea4d6914fb6d856988da7]. Also refinements on the ssh:// toward getting it working on windows. (user: drh size: 4900)
To Artifact [8a7f8d885d]:
- File src/popen.c — part of check-in [0cdb6403cb] at 2010-08-27 20:40:57 on branch trunk — The ssh:// method on windows is now working well with plink. It will even prompt for passwords if the URL contains a "*" password. (user: drh size: 4931)
| ︙ | |||
171 172 173 174 175 176 177 178 179 180 181 182 183 | 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
}
|