summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index ce98b6cf..e4c95c50 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -172,6 +172,7 @@ static void handleSignal_IpcResponse_(int sig) {
172} 172}
173 173
174iBool write_Ipc(iProcessId pid, const iString *input, enum iIpcWrite type) { 174iBool write_Ipc(iProcessId pid, const iString *input, enum iIpcWrite type) {
175 if (!pid) return iFalse;
175 iBool ok = iFalse; 176 iBool ok = iFalse;
176 iFile *f = newCStr_File(inputFilePath_(&ipc_, pid)); 177 iFile *f = newCStr_File(inputFilePath_(&ipc_, pid));
177 if (open_File(f, text_FileMode | append_FileMode)) { 178 if (open_File(f, text_FileMode | append_FileMode)) {
@@ -281,6 +282,7 @@ void listen_Ipc(void) {
281} 282}
282 283
283iBool write_Ipc(iProcessId pid, const iString *input, enum iIpcWrite type) { 284iBool write_Ipc(iProcessId pid, const iString *input, enum iIpcWrite type) {
285 if (!pid) return iFalse;
284 iUnused(type); 286 iUnused(type);
285 HANDLE slot = CreateFile(slotName_(pid), 287 HANDLE slot = CreateFile(slotName_(pid),
286 GENERIC_WRITE, 288 GENERIC_WRITE,