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:
wtc%netscape.com 2002-09-24 14:24:46 +00:00
Родитель 5ad7f3e49e
Коммит ce67f2977e
5 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -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)
{