cedric pushed a commit to branch master.
http://git.enlightenment.org/core/efl.git/commit/?id=1057a45493011e3628c067586e0b3ac14cdbf63f
commit 1057a45493011e3628c067586e0b3ac14cdbf63f
Author: Vincent Torri <vincent dot torri at gmail dot com>
Date: Thu Oct 8 22:33:30 2015 +0200
Ecore_Con: make sure to create named pipe with a unique name
Named pipes created with CreateNamedPipe() must have a unique name,
so append the process Id to the name
@fix
Signed-off-by: Cedric BAIL <[email protected]>
---
src/lib/ecore_con/ecore_con_local_win32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/ecore_con/ecore_con_local_win32.c
b/src/lib/ecore_con/ecore_con_local_win32.c
index cfeba72..6da9926 100644
--- a/src/lib/ecore_con/ecore_con_local_win32.c
+++ b/src/lib/ecore_con/ecore_con_local_win32.c
@@ -404,13 +404,13 @@ ecore_con_local_listen(Ecore_Con_Server *obj)
}
if ((svr->type & ECORE_CON_TYPE) == ECORE_CON_LOCAL_USER)
- snprintf(buf, sizeof(buf), "\\\\.\\pipe\\%s", svr->name);
+ snprintf(buf, sizeof(buf), "\\\\.\\pipe\\%s%ld", svr->name,
GetProcessId(GetCurrentProcess()));
else if ((svr->type & ECORE_CON_TYPE) == ECORE_CON_LOCAL_SYSTEM)
{
const char *computername;
computername = getenv("COMPUTERNAME");
- snprintf(buf, sizeof(buf), "\\\\%s\\pipe\\%s", computername,
svr->name);
+ snprintf(buf, sizeof(buf), "\\\\%s\\pipe\\%s%ld", computername,
svr->name, GetProcessId(GetCurrentProcess()));
}
svr->path = strdup(buf);
--