Bug 1289145 - Make pipe non blocking. r=:tedmielczarek NSPR_4_13_BETA3
authorDragana Damjanovic <dd.mozilla@gmail.com>
Fri, 09 Sep 2016 13:28:29 -0700
changeset 4693 c5f7511ed27673f72c9b4bef15b4e476bc98f402
parent 4692 f0a480e76ea4bdb33936650a53449f76b6669083
child 4694 e3d7b3049970ca09f1c3dab6563fd4cfe089fd9c
push id221
push usertmielczarek@mozilla.com
push dateFri, 09 Sep 2016 20:29:30 +0000
bugs1289145
Bug 1289145 - Make pipe non blocking. r=:tedmielczarek
pr/src/pthreads/ptio.c
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -3333,16 +3333,17 @@ static PRFileDesc *pt_SetMethods(
                 break;
             case PR_DESC_SOCKET_UDP:
                 fd->methods = PR_GetUDPMethods();
                 pt_MakeFdNonblock(osfd);
                 break;
             case PR_DESC_PIPE:
                 fd->methods = PR_GetPipeMethods();
                 pt_MakeFdNonblock(osfd);
+                fd->secret->nonblocking = PR_TRUE;
                 break;
             default:
                 break;
         }
     }
     return fd;
 }  /* pt_SetMethods */