g_child_watch_source_new: POSIX pid must be positive
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 6 Feb 2014 17:48:44 +0000 (17:48 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 11 Feb 2014 15:02:16 +0000 (15:02 +0000)
commit125913e9fe27da29699987d406fe6290ff288ccd
treed528b241422b4f6684a4a0e448cd60d6c45ff1bf
parenta3cb5ce33b636dd31ac009d5396997dfbb0b032c
g_child_watch_source_new: POSIX pid must be positive

If we used a non-positive pid, we'd call waitpid(that_pid, ...)
which is exactly the situation this function can't deal with.

On Windows, GPid is a HANDLE (pointer), so I don't think the same thing
applies.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=723743
Reviewed-by: Ryan Lortie
glib/gmain.c