aboutsummaryrefslogtreecommitdiff
path: root/libarmep/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarmep/service.c')
-rw-r--r--libarmep/service.c5
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;