diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2016-12-07 16:38:31 -0600 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2016-12-22 16:41:57 -0600 |
commit | 8ea70c400a70535b968537df4dbf0c23c5057d73 (patch) | |
tree | 9ce7c9b54d02540bfd531ed0181886bfea88c316 | |
parent | febc38c87fb4e75ce57bff02bee9f3c83bf92ea0 (diff) | |
download | ipc-8ea70c400a70535b968537df4dbf0c23c5057d73.tar.gz |
lad: Skip daemon running check in Android
The Android service start already takes care of checking
if the service is already running, so it's not required
to check again if the daemon is running or not.
It's recommended to add an Android service in the init.rc
script file for the lad_dra7xx. For instance:
service lad_dra7xx /system/bin/lad_dra7xx -g
class main
user media
group system
oneshot
The service can be set up to automatically launch when
Android boots or manually started later:
$ start lad_dra7xx
Directly running the lad_dra7xx executable in Android is
discouraged as the capability to enforce that only one
instance is running is lost.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r-- | linux/src/daemon/lad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/src/daemon/lad.c b/linux/src/daemon/lad.c index f21c9a2..758e098 100644 --- a/linux/src/daemon/lad.c +++ b/linux/src/daemon/lad.c @@ -153,10 +153,12 @@ int main(int argc, char * argv[]) } } +#ifndef IPC_BUILDOS_ANDROID if (isDaemonRunning(argv[0])) { printf("Multiple instances of LAD are not supported!\n"); exit(EXIT_FAILURE); } +#endif /* change to LAD's working directory */ if ((chdir(LAD_WORKINGDIR)) < 0) { |