gmain: Handle case where source id overflows
authorColin Walters <walters@verbum.org>
Thu, 8 Nov 2012 14:12:25 +0000 (09:12 -0500)
committerColin Walters <walters@verbum.org>
Tue, 13 Nov 2012 16:32:57 +0000 (11:32 -0500)
commitb98a1c8df30f9e24588a48331dacf01e49760549
tree70dfdb3f682990c3cb89b2b2145684d56f320b9d
parent606aa26acf8382ac0abb008838a0bcde12246c63
gmain: Handle case where source id overflows

0 is not a valid source id, but for long-lived programs that rapidly
create/destroy sources, it's possible for the source id to overflow.
We should handle this, because the documentation implies we will.

https://bugzilla.gnome.org/show_bug.cgi?id=687098
glib/glib-private.c
glib/glib-private.h
glib/gmain.c
glib/tests/mainloop.c