зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d05f694269
Коммит
f80927d197
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче