diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-20 17:16:28 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-20 17:16:28 +0200 |
commit | d51d083be8e34000cd00ce979445eacb45a16e97 (patch) | |
tree | f049458d72b7c6ebe7bea10770f48db1adfc0646 /Audio-Common/filescan-utils.c | |
parent | c58b7ea33694ab8c76f8cb452d3b8928eb3279ad (diff) |
Updated to latest App Template
Diffstat (limited to 'Audio-Common/filescan-utils.c')
-rw-r--r-- | Audio-Common/filescan-utils.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Audio-Common/filescan-utils.c b/Audio-Common/filescan-utils.c index af0b5c9..4a5613f 100644 --- a/Audio-Common/filescan-utils.c +++ b/Audio-Common/filescan-utils.c @@ -113,9 +113,12 @@ PUBLIC const char *GetBinderName() { if (binderName) return binderName; - // retrieve binder name from process name afb-name-trailer - prctl(PR_GET_NAME, psName,NULL,NULL,NULL); - binderName=(char*)GetMidleName(psName); + binderName= getenv("AFB_BINDER_NAME"); + if (!binderName) { + // retrieve binder name from process name afb-name-trailer + prctl(PR_GET_NAME, psName,NULL,NULL,NULL); + binderName=(char*)GetMidleName(psName); + } return binderName; }
\ No newline at end of file |