Bugzilla bug #39731: the imported pipe needs to have its NSPRPUB_RELEASE_4_1_BETA
authorwtc%netscape.com
Fri, 11 Aug 2000 18:36:38 +0000
changeset 1536 228f4bf28052a0f8b8059b4f6681f73f86efd67c
parent 1531 38a7f9a20fc63ec7fc48ba1d1e0729321fb3206f
child 1538 f98e1bff4e969230c76b7cac5ad6f0d645b8b764
push idunknown
push userunknown
push dateunknown
bugs39731
Bugzilla bug #39731: the imported pipe needs to have its secret->md.sync_file_io set to PR_TRUE on NT because unnamed pipes don't support async io.
pr/src/io/prfile.c
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -565,16 +565,19 @@ PR_IMPLEMENT(PRFileDesc*) PR_ImportPipe(
 
     if (!_pr_initialized) _PR_ImplicitInitialization();
 
     fd = PR_AllocFileDesc(osfd, &_pr_pipeMethods);
     if( !fd ) {
         (void) _PR_MD_CLOSE_FILE(osfd);
     } else {
         _PR_MD_INIT_FD_INHERITABLE(fd, PR_TRUE);
+#ifdef WINNT
+        fd->secret->md.sync_file_io = PR_TRUE;
+#endif
     }
 
     return fd;
 }
 
 #ifndef NO_NSPR_10_SUPPORT
 /*
 ** PR_Stat() for Win16 is defined in w16io.c