mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
[Win32] Don't exceed handle array bounds. Warn if there would be too many
2003-08-15 Tor Lillqvist <tml@iki.fi> * glib/gmain.c (g_poll): [Win32] Don't exceed handle array bounds. Warn if there would be too many handles to wait for. (WaitForMultipleObjects() has a relatively low limit of 64 handles. The Win32 IO channel code should be fixed not to need to wait for one handle per file or socket being watched. Later.)
This commit is contained in:
parent
12eae9a669
commit
3f3bb7fef3
@ -1,3 +1,11 @@
|
||||
2003-08-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
|
||||
bounds. Warn if there would be too many handles to wait
|
||||
for. (WaitForMultipleObjects() has a relatively low limit of 64
|
||||
handles. The Win32 IO channel code should be fixed not to need to
|
||||
wait for one handle per file or socket being watched. Later.)
|
||||
|
||||
2003-08-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/Makefile.am
|
||||
|
@ -1,3 +1,11 @@
|
||||
2003-08-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
|
||||
bounds. Warn if there would be too many handles to wait
|
||||
for. (WaitForMultipleObjects() has a relatively low limit of 64
|
||||
handles. The Win32 IO channel code should be fixed not to need to
|
||||
wait for one handle per file or socket being watched. Later.)
|
||||
|
||||
2003-08-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/Makefile.am
|
||||
|
@ -1,3 +1,11 @@
|
||||
2003-08-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
|
||||
bounds. Warn if there would be too many handles to wait
|
||||
for. (WaitForMultipleObjects() has a relatively low limit of 64
|
||||
handles. The Win32 IO channel code should be fixed not to need to
|
||||
wait for one handle per file or socket being watched. Later.)
|
||||
|
||||
2003-08-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/Makefile.am
|
||||
|
@ -1,3 +1,11 @@
|
||||
2003-08-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
|
||||
bounds. Warn if there would be too many handles to wait
|
||||
for. (WaitForMultipleObjects() has a relatively low limit of 64
|
||||
handles. The Win32 IO channel code should be fixed not to need to
|
||||
wait for one handle per file or socket being watched. Later.)
|
||||
|
||||
2003-08-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/Makefile.am
|
||||
|
@ -1,3 +1,11 @@
|
||||
2003-08-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
|
||||
bounds. Warn if there would be too many handles to wait
|
||||
for. (WaitForMultipleObjects() has a relatively low limit of 64
|
||||
handles. The Win32 IO channel code should be fixed not to need to
|
||||
wait for one handle per file or socket being watched. Later.)
|
||||
|
||||
2003-08-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/Makefile.am
|
||||
|
@ -1,3 +1,11 @@
|
||||
2003-08-15 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
|
||||
bounds. Warn if there would be too many handles to wait
|
||||
for. (WaitForMultipleObjects() has a relatively low limit of 64
|
||||
handles. The Win32 IO channel code should be fixed not to need to
|
||||
wait for one handle per file or socket being watched. Later.)
|
||||
|
||||
2003-08-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/Makefile.am
|
||||
|
@ -273,6 +273,11 @@ g_poll (GPollFD *fds,
|
||||
{
|
||||
if (f->fd == G_WIN32_MSG_HANDLE)
|
||||
poll_msgs = TRUE;
|
||||
else if (nhandles == MAXIMUM_WAIT_OBJECTS)
|
||||
{
|
||||
g_warning (G_STRLOC ": Too many handles to wait for!\n");
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef G_MAIN_POLL_DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user