From 8087d1fb6c6bbf49b7419bfc61df40ceceb41cda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 15 Feb 2016 13:42:56 +0100 Subject: [PATCH] afm-launch: moves initialisation at bottom MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I8819baa899f2fa5070b0972fce17922e09d69c05 Signed-off-by: José Bollo --- src/afm-launch.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/afm-launch.c b/src/afm-launch.c index cd820c5..d5fb7ce 100644 --- a/src/afm-launch.c +++ b/src/afm-launch.c @@ -755,22 +755,6 @@ static int launch_remote( return rc; } -int afm_launch_initialize() -{ - int rc; - gid_t r, e, s; - - getresgid(&r, &e, &s); - if (s && s != e) - groupid = s; - else - groupid = -1; - - rc = read_configuration_file(FWK_LAUNCH_CONF); - dump_launchers(); - return rc; -} - static struct desc_list *search_launcher(const char *type, enum afm_launch_mode mode) { struct desc_list *dl; @@ -840,3 +824,19 @@ int afm_launch(struct afm_launch_desc *desc, pid_t children[2], char **uri) } } +int afm_launch_initialize() +{ + int rc; + gid_t r, e, s; + + getresgid(&r, &e, &s); + if (s && s != e) + groupid = s; + else + groupid = -1; + + rc = read_configuration_file(FWK_LAUNCH_CONF); + dump_launchers(); + return rc; +} + -- 2.16.6