Initial fd->revents to zero. (#8482, Benjamin Kahn)

Sat Dec  2 09:24:35 2000  Owen Taylor  <otaylor@redhat.com>

	* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
	to zero. (#8482, Benjamin Kahn)
This commit is contained in:
Owen Taylor 2000-12-02 14:28:25 +00:00 committed by Owen Taylor
parent 63350b7107
commit 1f3cae7e26
10 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1,3 +1,8 @@
Sat Dec 2 09:24:35 2000 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero.
2000-11-29 Martin Baulig <baulig@suse.de>
* *.pc.in: Make the pkg-config scripts actually work.

View File

@ -1134,6 +1134,8 @@ g_main_add_poll_unlocked (gint priority,
else
newrec = g_chunk_new (GPollRec, poll_chunk);
/* This file descriptor may be checked before we ever poll */
fd->revents = 0;
newrec->fd = fd;
newrec->priority = priority;

View File

@ -1134,6 +1134,8 @@ g_main_add_poll_unlocked (gint priority,
else
newrec = g_chunk_new (GPollRec, poll_chunk);
/* This file descriptor may be checked before we ever poll */
fd->revents = 0;
newrec->fd = fd;
newrec->priority = priority;