summaryrefslogtreecommitdiff
path: root/LayerManagerClient
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2012-10-17 02:27:15 -0700
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2012-10-22 03:55:52 -0700
commit785e0d08894dbbb2714f586889eedb1dfc93a651 (patch)
tree497132d74fb19b47b0ef9d0ca2fb553c2daac22f /LayerManagerClient
parent00d7e7ddfbc0e756e29e9a182e8f61796d604b06 (diff)
downloadlayer_management-785e0d08894dbbb2714f586889eedb1dfc93a651.tar.gz
ilmClient: including client application name in ServiceConnect
Diffstat (limited to 'LayerManagerClient')
-rw-r--r--LayerManagerClient/ilmClient/src/generic_ilm_client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/LayerManagerClient/ilmClient/src/generic_ilm_client.c b/LayerManagerClient/ilmClient/src/generic_ilm_client.c
index e91e9ed..64696d3 100644
--- a/LayerManagerClient/ilmClient/src/generic_ilm_client.c
+++ b/LayerManagerClient/ilmClient/src/generic_ilm_client.c
@@ -48,6 +48,8 @@ const int gResponseTimeout = 500; // in ms
//=============================================================================
// global vars
//=============================================================================
+extern char *__progname;
+
struct IpcModule gIpcModule;
pthread_t gReceiveThread;
@@ -468,8 +470,9 @@ ilmErrorTypes ilm_init()
t_ilm_message command = gIpcModule.createMessage("ServiceConnect");
if (command
- && gIpcModule.appendUint(command, pid)
- && gIpcModule.sendToService(command))
+ && gIpcModule.appendUint(command, pid)
+ && gIpcModule.appendString(command, __progname)
+ && gIpcModule.sendToService(command))
{
t_ilm_message response = waitForResponse(gResponseTimeout);
if (response)