diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-25 16:38:23 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-25 16:38:23 +0100 |
commit | aaacdc350547dd5a5d637f9a054888792781895a (patch) | |
tree | 8a9c0edff45a37a4c31de254b03016e2bfb7fb60 /src/ips | |
parent | 8607bb0c1e7653c1249c40fa573f94718b4d5727 (diff) | |
download | chawan-aaacdc350547dd5a5d637f9a054888792781895a.tar.gz |
Improve status messages, fix regressions, etc
Diffstat (limited to 'src/ips')
-rw-r--r-- | src/ips/forkserver.nim | 1 | ||||
-rw-r--r-- | src/ips/socketstream.nim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ips/forkserver.nim b/src/ips/forkserver.nim index 3e93402d..1c29b120 100644 --- a/src/ips/forkserver.nim +++ b/src/ips/forkserver.nim @@ -33,6 +33,7 @@ proc newFileLoader*(forkserver: ForkServer, defaultHeaders: HeaderList = Default proc removeChild*(forkserver: Forkserver, pid: Pid) = forkserver.ostream.swrite(REMOVE_CHILD) + forkserver.ostream.swrite(pid) forkserver.ostream.flush() proc forkLoader(ctx: var ForkServerContext, defaultHeaders: HeaderList): FileLoader = diff --git a/src/ips/socketstream.nim b/src/ips/socketstream.nim index 3918fe2c..6ce9bd88 100644 --- a/src/ips/socketstream.nim +++ b/src/ips/socketstream.nim @@ -16,7 +16,7 @@ proc sockReadData(s: Stream, buffer: pointer, len: int): int = let s = SocketStream(s) result = s.source.recv(buffer, len) if result < 0: - raise newException(Defect, "Failed to read data (code " & $osLastError() & ")") + raise newException(IOError, "Failed to read data (code " & $osLastError() & ")") elif result < len: s.isend = true |