Return to util.c CVS log | Up to [local] / src / usr.bin / cvs |
version 1.150, 2009/02/23 21:33:12 | version 1.151, 2009/03/24 06:59:19 | ||
---|---|---|---|
|
|
||
cvs_exec(char *prog, const char *in, int needwait) | cvs_exec(char *prog, const char *in, int needwait) | ||
{ | { | ||
pid_t pid; | pid_t pid; | ||
int fds[2], size, st; | size_t size; | ||
int fds[2], st; | |||
char *argp[4] = { "sh", "-c", prog, NULL }; | char *argp[4] = { "sh", "-c", prog, NULL }; | ||
if (in != NULL && pipe(fds) < 0) { | if (in != NULL && pipe(fds) < 0) { |