mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-20 13:40:25 +01:00
dbus/dbus-spawn-win.c: implement missing _dbus_babysitter_get_child_exit_status (cherry picked from commit 7a9863b9847380dbb8400f895934d7f282ebdbf2)
This commit is contained in:
parent
8a7f49a51e
commit
b9eae52cc0
1 changed files with 16 additions and 0 deletions
|
|
@ -268,6 +268,22 @@ _dbus_babysitter_get_child_exited (DBusBabysitter *sitter)
|
|||
return (sitter->child_handle == NULL);
|
||||
}
|
||||
|
||||
dbus_bool_t
|
||||
_dbus_babysitter_get_child_exit_status (DBusBabysitter *sitter,
|
||||
int *status)
|
||||
{
|
||||
PING();
|
||||
|
||||
if (!_dbus_babysitter_get_child_exited (sitter))
|
||||
_dbus_assert_not_reached ("Child has not exited");
|
||||
|
||||
if (!sitter->have_child_status)
|
||||
return FALSE;
|
||||
|
||||
*status = sitter->child_status;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the exit status of the child. We do this so implementation specific
|
||||
* detail is not cluttering up dbus, for example the system launcher code.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue