diff options
author | 2016-02-13 12:51:29 +0100 | |
---|---|---|
committer | 2016-02-13 15:25:04 +0100 | |
commit | b61b97c4280c8cd5a34c69a35c954f9580462c45 (patch) | |
tree | 04d5073ce00c91d8aa49b1fcf07c8b5cc6b46035 /src/afm-launch.c | |
parent | e906126c4e46ad9f3471aee208f096f55289ca03 (diff) |
afm-user-daemon: prepare to launch with mode
Change-Id: I0372eab2496c2fdb12144d68c0f041f5f1fd360e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-launch.c')
-rw-r--r-- | src/afm-launch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afm-launch.c b/src/afm-launch.c index 47f3f8b..216e6df 100644 --- a/src/afm-launch.c +++ b/src/afm-launch.c @@ -32,6 +32,7 @@ extern char **environ; #include "verbose.h" +#include "afm-launch-mode.h" #include "afm-launch.h" #include "secmgr-wrap.h" @@ -590,7 +591,7 @@ int afm_launch_initialize() return rc; } -int afm_launch(struct afm_launch_desc *desc, pid_t children[2]) +int afm_launch(struct afm_launch_desc *desc, pid_t children[2], char **uri) { char datadir[PATH_MAX]; int ikl, rc; @@ -600,6 +601,7 @@ int afm_launch(struct afm_launch_desc *desc, pid_t children[2]) /* should be init */ assert(groupid != 0); + assert(launch_mode_is_valid(desc->mode)); /* init */ children[0] = 0; |