From 1abc51cccbe62a4f0e7e13eeb51cfa3aaa9aa542 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 14 Jan 2025 18:24:10 +0100 Subject: More strict defs --- adapter/protocol/man.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'adapter/protocol/man.nim') diff --git a/adapter/protocol/man.nim b/adapter/protocol/man.nim index 4b26379c..a8c4ae34 100644 --- a/adapter/protocol/man.nim +++ b/adapter/protocol/man.nim @@ -304,9 +304,9 @@ proc doKeyword(man, keyword, section: string) = quit(1) var line: string if not ofile.readLine(line) or ofile.endOfFile(): - var wstatus: cint - discard wait(addr wstatus) - if not WIFEXITED(wstatus) or WEXITSTATUS(wstatus) != 0: + var wstatus = cint(0) + if wait(addr wstatus) >= 0 and not WIFEXITED(wstatus) or + WEXITSTATUS(wstatus) != 0: stdout.write("Cha-Control: ConnectionError 4 " & efile.readErrorMsg(line)) ofile.close() efile.close() -- cgit 1.4.1-2-gfad0