diff options
author | Andy Green <andy.green@linaro.org> | 2012-10-12 12:07:44 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-10-12 12:07:44 +0800 |
commit | 7e79599d0e1ec600c9f670cf1d94f11bdafb1c46 (patch) | |
tree | 8b68a12d21e4e69f083529f937b2fe9263e0996b /libarmep/service.c | |
parent | e1c9107dfc99a1827db10ee558f59c88113cd000 (diff) |
change process name of aep service fork
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'libarmep/service.c')
-rw-r--r-- | libarmep/service.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libarmep/service.c b/libarmep/service.c index c6c5970..a57b2f2 100644 --- a/libarmep/service.c +++ b/libarmep/service.c @@ -541,7 +541,7 @@ void sighandler(int sig) } -int aep_init_and_fork(struct aep_context *aep_context) +int aep_init_and_fork(struct aep_context *aep_context, char *argv[]) { int n, m, i; struct aep_channel *ch; @@ -581,6 +581,9 @@ int aep_init_and_fork(struct aep_context *aep_context) * fills the named pipe fifo with sample packets */ + if (argv) + strcpy(argv[0] + strlen(argv[0]), " - AEP server"); + aep_context->semaphore = sem_open(semname, O_CREAT | O_RDWR, 0600, 0); aep_context->aep_shared->finished = 0; |