mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 01:16:17 +01:00
Mask out ERR HUP and NVAL from the events field so we don't give IRIX
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com> * gmain.c (g_main_poll): Mask out ERR HUP and NVAL from the events field so we don't give IRIX fits.
This commit is contained in:
parent
5ee8d2bdb8
commit
ff140aa613
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Apr 27 13:11:29 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
|
||||
the events field so we don't give IRIX fits.
|
||||
|
||||
Tue Apr 20 08:42:22 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gscanner.c (g_scanner_unexp_token): behave conservative with
|
||||
|
@ -998,7 +998,12 @@ g_main_poll (gint timeout,
|
||||
if (pollrec->fd->events)
|
||||
{
|
||||
fd_array[i].fd = pollrec->fd->fd;
|
||||
fd_array[i].events = pollrec->fd->events;
|
||||
/* In direct contradiction to the Unix98 spec, IRIX runs into
|
||||
* difficulty if you pass in POLLERR, POLLHUP or POLLNVAL
|
||||
* flags in the events field of the pollfd while it should
|
||||
* just ignoring them. So we mask them out here.
|
||||
*/
|
||||
fd_array[i].events = pollrec->fd->events & ~(G_IO_ERR|G_IO_HUP|G_IO_NVAL);
|
||||
fd_array[i].revents = 0;
|
||||
i++;
|
||||
}
|
||||
|
7
gmain.c
7
gmain.c
@ -998,7 +998,12 @@ g_main_poll (gint timeout,
|
||||
if (pollrec->fd->events)
|
||||
{
|
||||
fd_array[i].fd = pollrec->fd->fd;
|
||||
fd_array[i].events = pollrec->fd->events;
|
||||
/* In direct contradiction to the Unix98 spec, IRIX runs into
|
||||
* difficulty if you pass in POLLERR, POLLHUP or POLLNVAL
|
||||
* flags in the events field of the pollfd while it should
|
||||
* just ignoring them. So we mask them out here.
|
||||
*/
|
||||
fd_array[i].events = pollrec->fd->events & ~(G_IO_ERR|G_IO_HUP|G_IO_NVAL);
|
||||
fd_array[i].revents = 0;
|
||||
i++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user