summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-02-12 18:47:18 +0000
committerwtc%netscape.com <devnull@localhost>1999-02-12 18:47:18 +0000
commitd2420100307e118a7eb5ed0c621866d62bd80c1f (patch)
tree2be2c9791ecdd2854745eeabfacc5d7e61b2d138
parent2147b6be7d886f13bc5932a3c833dab6cd9b0e36 (diff)
downloadnspr-hg-d2420100307e118a7eb5ed0c621866d62bd80c1f.tar.gz
In the Win32 implementation of PR_CreatePipe, mark the pipe endpoints
as inheritable. (We probably should create them as non-inheritable.)
-rw-r--r--pr/src/io/prfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pr/src/io/prfile.c b/pr/src/io/prfile.c
index cee94489..e9803866 100644
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -551,6 +551,8 @@ PR_IMPLEMENT(PRStatus) PR_CreatePipe(
(*readPipe)->secret->md.sync_file_io = PR_TRUE;
(*writePipe)->secret->md.sync_file_io = PR_TRUE;
#endif
+ (*readPipe)->secret->inheritable = PR_TRUE;
+ (*writePipe)->secret->inheritable = PR_TRUE;
return PR_SUCCESS;
#elif defined(XP_UNIX)
int pipefd[2];