diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-02-15 13:42:56 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-02-15 13:42:56 +0100 |
commit | 8087d1fb6c6bbf49b7419bfc61df40ceceb41cda (patch) | |
tree | 5861312178357542cecd97f7e2a6b221d74f3d34 | |
parent | 997dbadce8ee4a3345b5a9074dcf60010c5781bc (diff) |
afm-launch: moves initialisation at bottom
Change-Id: I8819baa899f2fa5070b0972fce17922e09d69c05
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afm-launch.c | 32 |
1 files 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; +} + |