From d4d2fe5e804088312590b52be3123e4cfc1df035 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Nov 2001 20:48:43 +0000 Subject: [PATCH] added function pidwait_get_pids() which session.c uses - forgot to commit last time :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2132 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/pidwait.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/pidwait.c b/src/core/pidwait.c index f54aa34d..bb48d0d0 100644 --- a/src/core/pidwait.c +++ b/src/core/pidwait.c @@ -41,6 +41,13 @@ void pidwait_remove(int pid) pids = g_slist_remove(pids, GINT_TO_POINTER(pid)); } +/* return list of pids that are being waited. + don't free the return value. */ +GSList *pidwait_get_pids(void) +{ + return pids; +} + static int child_check(void) { GSList *tmp, *next;