summary refs log tree commit diff stats
path: root/lib/pure/osproc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/osproc.nim')
-rw-r--r--lib/pure/osproc.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 7378520e3..abc21b2b2 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -1143,7 +1143,9 @@ elif not defined(useNimRtl):
     var ret = waitpid(p.id, p.exitCode, WNOHANG)
     var b = ret == int(p.id)
     if b: result = -1
-    if not WIFEXITED(p.exitCode): result = -1
+    if not WIFEXITED(p.exitCode):
+      p.exitCode = -3
+      result = -1
     else: result = p.exitCode.int shr 8
 
   proc createStream(stream: var Stream, handle: var FileHandle,
commit/compiler/idgen.nim?h=devel&id=da190876de0d500c94d23c64eb372d3bb8e2bb09'>da190876d ^
4de84024e ^





2a0f7b5de ^
e53fc9128 ^
4de84024e ^
2a0f7b5de ^


2df9b442c ^
6216046bc ^
2a0f7b5de ^
4de84024e ^


2a0f7b5de ^
4de84024e ^


2a0f7b5de ^
4de84024e ^

2a0f7b5de ^
92b8fac94 ^
4de84024e ^
a6f90d4cd ^
dce8d3d1a ^



a6f90d4cd ^
4de84024e ^
a6f90d4cd ^
2a0f7b5de ^

4de84024e ^
2a0f7b5de ^
4de84024e ^
2f43fdb83 ^
a6f90d4cd ^
a489161b1 ^





92b8fac94 ^
4de84024e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65