Bug 206815: fixed a benign UMR in the PR_Poll implementations based on

poll().  We should initialize the events field of the pollfd structure
when we set the fd field to -1 even though the events field is ignored
if the fd field is negative.
Modified Files: ptio.c uxpoll.c
This commit is contained in:
wtc%netscape.com 2003-05-23 01:34:51 +00:00
Родитель d05f694269
Коммит f80927d197
2 изменённых файлов: 2 добавлений и 0 удалений

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

@ -173,6 +173,7 @@ static PRInt32 NativeThreadPoll(
{
/* make poll() ignore this entry */
syspoll[index].fd = -1;
syspoll[index].events = 0;
pds[index].out_flags = 0;
}
}

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

@ -3832,6 +3832,7 @@ static PRInt32 _pr_poll_with_poll(
{
/* make poll() ignore this entry */
syspoll[index].fd = -1;
syspoll[index].events = 0;
pds[index].out_flags = 0;
}
}