diff options
author | Yukihiro Matsumoto <[email protected]> | 1997-12-04 14:29:59 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-08-17 22:09:33 +0900 |
commit | fb0fe24512d1796f794306768ddac37566e9a209 (patch) | |
tree | 441fc10b147be3cc7db217ab1d64ec1ff4dbf7ff /missing | |
parent | ab261638f5b87384fa2bda5678cb38ae9a505209 (diff) |
version 1.0-971204v1_0_971204
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971204.tar.gz
Thu Dec 4 14:29:59 1997 Yukihiro Matsumoto <[email protected]>
* version 1.0-971204
Mon Dec 1 15:24:41 1997 Yukihiro Matsumoto <[email protected]>
* compar.c (cmp_between): wrong comparison made.
Wed Nov 26 18:18:05 1997 Yukihiro Matsumoto <[email protected]>
* numeric.c (fix2str): enlarge buffer to prevent overflow on some
machines.
Diffstat (limited to 'missing')
-rw-r--r-- | missing/nt.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/missing/nt.c b/missing/nt.c index 58736ae241..b96ac93340 100644 --- a/missing/nt.c +++ b/missing/nt.c @@ -491,6 +491,20 @@ mypopen (char *cmd, char *mode) sa.lpSecurityDescriptor = NULL;
sa.bInheritHandle = TRUE;
+ if (!reading) {
+ FILE *fp;
+
+ fp = (_popen)(cmd, mode);
+
+ MyPopenRecord[slot].inuse = TRUE;
+ MyPopenRecord[slot].pipe = fp;
+ MyPopenRecord[slot].pid = -1;
+
+ if (!fp)
+ Fatal("cannot open pipe \"%s\" (%s)", cmd, strerror(errno));
+ return fp;
+ }
+
fRet = CreatePipe(&hInFile, &hOutFile, &sa, 2048L);
if (!fRet)
Fatal("cannot open pipe \"%s\" (%s)", cmd, strerror(errno));
|