mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 168993: PR_Poll should clear out_flags for null fd's. r=jgmyers.
Modified files: bfile.c os2poll.c uxpoll.c w32poll.c ptio.c
This commit is contained in:
parent
5ad7f3e49e
commit
ce67f2977e
@ -673,6 +673,10 @@ _MD_pr_poll(PRPollDesc *pds, PRIntn npds, PRIntervalTime timeout)
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pd->out_flags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (0 != ready) return ready; /* no need to block */
|
||||
|
@ -214,6 +214,10 @@ PRInt32 _PR_MD_PR_POLL(PRPollDesc *pds, PRIntn npds, PRIntervalTime timeout)
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pd->out_flags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (0 != ready)
|
||||
|
@ -173,6 +173,7 @@ static PRInt32 NativeThreadPoll(
|
||||
{
|
||||
/* make poll() ignore this entry */
|
||||
syspoll[index].fd = -1;
|
||||
pds[index].out_flags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -384,6 +385,10 @@ static PRInt32 NativeThreadSelect(
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pd->out_flags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (0 != ready) return ready; /* no need to block */
|
||||
|
@ -223,6 +223,10 @@ PRInt32 _PR_MD_PR_POLL(PRPollDesc *pds, PRIntn npds, PRIntervalTime timeout)
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pd->out_flags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (0 != ready) return ready; /* no need to block */
|
||||
|
@ -3824,6 +3824,7 @@ static PRInt32 _pr_poll_with_poll(
|
||||
{
|
||||
/* make poll() ignore this entry */
|
||||
syspoll[index].fd = -1;
|
||||
pds[index].out_flags = 0;
|
||||
}
|
||||
}
|
||||
if (0 == ready)
|
||||
@ -4085,6 +4086,10 @@ static PRInt32 _pr_poll_with_select(
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pds[index].out_flags = 0;
|
||||
}
|
||||
}
|
||||
if (0 == ready)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user