From ad7617a528dc93ec795cf2ccacbbb2336e6a4319 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 23 Dec 2021 17:43:02 +0000 Subject: [PATCH] gmain: Add a clarifying comment about exit statuses vs wait statuses Signed-off-by: Philip Withnall Helps: #2216 (cherry-picked from commit 7b93693ab3007670a3d95d6ac3cb9260c5643493) --- glib/gmain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/gmain.c b/glib/gmain.c index 94aa1152a..f33f55fd1 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -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;