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

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

Helps: #2216

(cherry-picked from commit 7b93693ab3007670a3d95d6ac3cb9260c5643493)
This commit is contained in:
Philip Withnall 2021-12-23 17:43:02 +00:00 committed by Marco Trevisan (Treviño)
parent fcf2aaa1eb
commit ad7617a528

View File

@ -342,6 +342,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;