diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-06 19:03:17 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-06 19:03:17 +0300 |
commit | 9d7469ded746cbfa1e86c1ecd67e4a36f29f635b (patch) | |
tree | ebff33e64e8953ef46ef5de54559fce234c20303 /src/ipc.c | |
parent | 7c7af3b7425f0496203d68d9bc42be0603048a9b (diff) | |
parent | 186573dae1d0eab4560f02fe3b999418ea0f4614 (diff) |
Merge branch 'dev' into work/v1.7
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, |