diff options
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index 469aff42..56fa5c42 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -326,13 +326,18 @@ proc acceptBuffers(client: Client) = else: client.pager.procmap.del(pid) stream.close() + var accepted: seq[Pid] for pid, container in client.pager.procmap: let stream = connectSocketStream(pid, buffered = false, blocking = true) + if stream == nil: + client.pager.alert("Error: failed to set up buffer") + continue container.setStream(stream) let fd = stream.source.getFd() client.fdmap[int(fd)] = container client.selector.registerHandle(fd, {Read}, 0) client.pager.handleEvents(container) + accepted.add(pid) client.pager.procmap.clear() proc c_setvbuf(f: File, buf: pointer, mode: cint, size: csize_t): cint {. |