version 1.141, 2006/04/01 05:50:29 |
version 1.142, 2006/05/17 12:43:34 |
|
|
* Reserve two descriptors so that the real pipes won't get |
* Reserve two descriptors so that the real pipes won't get |
* descriptors 0 and 1 because that will screw up dup2 below. |
* descriptors 0 and 1 because that will screw up dup2 below. |
*/ |
*/ |
pipe(reserved); |
if (pipe(reserved) < 0) |
|
fatal("pipe: %s", strerror(errno)); |
|
|
/* Create a socket pair for communicating with ssh. */ |
/* Create a socket pair for communicating with ssh. */ |
if (pipe(pin) < 0) |
if (pipe(pin) < 0) |
|
|
source(1, argv + i); |
source(1, argv + i); |
} |
} |
} |
} |
|
xfree(arg); |
} |
} |
|
|
void |
void |