blob: fa05fbfbe1d9bf6e41273ec7915cd22822e44c73 [file] [log] [blame]
Index: nspr-4.8.6/mozilla/nsprpub/pr/src/md/unix/uxproces.c
===================================================================
--- nspr-4.8.6.orig/mozilla/nsprpub/pr/src/md/unix/uxproces.c
+++ nspr-4.8.6/mozilla/nsprpub/pr/src/md/unix/uxproces.c
@@ -636,7 +636,7 @@ static void WaitPidDaemonThread(void *un
PRPollDesc pd;
PRFileDesc *fd;
int rv;
- char buf[128];
+ char ctmp;
pid_t pid;
int status;
#ifdef _PR_SHARE_CLONES
@@ -664,8 +664,8 @@ static void WaitPidDaemonThread(void *un
#endif
do {
- rv = read(pr_wp.pipefd[0], buf, sizeof(buf));
- } while (sizeof(buf) == rv || (-1 == rv && EINTR == errno));
+ rv = read(pr_wp.pipefd[0], &ctmp, sizeof(ctmp));
+ } while (-1 == rv && EINTR == errno);
#ifdef _PR_SHARE_CLONES
PR_Unlock(pr_wp.ml);