diff options
Diffstat (limited to 'src/ipc.c')
-rw-r--r-- | src/ipc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -172,6 +172,7 @@ static void handleSignal_IpcResponse_(int sig) { | |||
172 | } | 172 | } |
173 | 173 | ||
174 | iBool write_Ipc(iProcessId pid, const iString *input, enum iIpcWrite type) { | 174 | iBool 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 | ||
283 | iBool write_Ipc(iProcessId pid, const iString *input, enum iIpcWrite type) { | 284 | iBool 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, |