From: José Bollo Date: Mon, 15 Feb 2016 12:42:56 +0000 (+0100) Subject: afm-launch: moves initialisation at bottom X-Git-Tag: 2.0.2~59 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-main.git;a=commitdiff_plain;h=8087d1fb6c6bbf49b7419bfc61df40ceceb41cda afm-launch: moves initialisation at bottom Change-Id: I8819baa899f2fa5070b0972fce17922e09d69c05 Signed-off-by: José Bollo --- 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; +} +