*/
#include <FBaseSysLog.h>
-
+#include <unistd.h>
+#include <sys/types.h>
#include <FIo_AppServiceIpcMessages.h>
#include "FSys_CommunicationDispatcherClient.h"
__communicationDispatcherClientList.Construct(0, 0, __strHashCodeProvider, __strComparer);
result r = E_SUCCESS;
- __pIpcClient = new (std::nothrow) _IpcClient();
- SysTryCatch(NID_SYS, __pIpcClient != null, , r, "It is failed to create IPC client");
-
- r = __pIpcClient->Construct(_COMMUNICATION_DISPATCHER_IPC_ID, this);
- if(r != E_SUCCESS)
- ipcReady = false;
- else
- ipcReady = true;
+
+ if(getuid() != 0)
+ {
+ __pIpcClient = new (std::nothrow) _IpcClient();
+ SysTryCatch(NID_SYS, __pIpcClient != null, , r, "It is failed to create IPC client");
+
+ r = __pIpcClient->Construct(_COMMUNICATION_DISPATCHER_IPC_ID, this);
+ if(r != E_SUCCESS)
+ ipcReady = false;
+ else
+ ipcReady = true;
SysTryCatch(NID_SYS, r == E_SUCCESS, , r, "Propagated. [%s]", GetErrorMessage(r));
+ }
CATCH:
SetLastResult(r);