gmain: Add a clarifying comment about exit statuses vs wait statuses

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #2216
This commit is contained in:
Philip Withnall 2021-12-23 17:43:02 +00:00
parent ed564b71dd
commit 7b93693ab3

View File

@ -352,6 +352,8 @@ struct _GChildWatchSource
{
GSource source;
GPid pid;
/* On Unix this is a wait status, which is the thing you pass to WEXITSTATUS()
* to get the status returned from the process main() or passed to exit(): */
gint child_status;
#ifdef G_OS_WIN32
GPollFD poll;