Add g_spawn_check_exit_status()
authorColin Walters <walters@verbum.org>
Tue, 10 Jul 2012 15:27:22 +0000 (11:27 -0400)
committerColin Walters <walters@verbum.org>
Tue, 10 Jul 2012 22:03:56 +0000 (18:03 -0400)
commitf7abd3ce130ae3a6da8502c2dce8d773d7514464
treeeed16ef3cdeb14eca81052e318fe398cd2465848
parent82d914d808c616d14d489c0272c6d5afc4bfbd5a
Add g_spawn_check_exit_status()

Many (if not "almost all") programs that spawn other programs via
g_spawn_sync() or the like simply want to check whether or not the
child exited successfully, but doing so requires use of
platform-specific functionality and there's actually a fair amount of
boilerplate involved.

This new API will help drain a *lot* of mostly duplicated code in
GNOME, from gnome-session to gdm.  And we can see that some bits even
inside GLib were doing it wrong; for example checking the exit status
on Unix, but ignoring it on Windows.

https://bugzilla.gnome.org/show_bug.cgi?id=679691
docs/reference/glib/glib-sections.txt
gio/gdbusaddress.c
gio/gdesktopappinfo.c
gio/glib-compile-resources.c
gio/tests/gdbus-connection-slow.c
gio/tests/gdbus-connection.c
glib/glib.symbols
glib/gmain.c
glib/gmain.h
glib/gspawn.c
glib/gspawn.h