summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2017-05-09 15:14:20 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2017-05-09 15:14:47 +0100
commitfa3436fb657141127038d88431b4aad113c27cf6 (patch)
treea239990aa449c6d1d9987487596d3e4c728136e5
parent2edcd07031bdd7555c43b59c0af0836eb469bbb0 (diff)
downloadNim-fa3436fb657141127038d88431b4aad113c27cf6.tar.gz
Deprecate osproc.select(). Refs #90.
-rw-r--r--lib/pure/osproc.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 82a0c0c65..c94a65a63 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -335,7 +335,8 @@ proc execProcesses*(cmds: openArray[string],
       if afterRunEvent != nil: afterRunEvent(i, p)
       close(p)
 
-proc select*(readfds: var seq[Process], timeout = 500): int {.benign.}
+proc select*(readfds: var seq[Process], timeout = 500): int
+  {.benign, deprecated.}
   ## `select` with a sensible Nim interface. `timeout` is in milliseconds.
   ## Specify -1 for no timeout. Returns the number of processes that are
   ## ready to read from. The processes that are ready to be read from are
@@ -343,6 +344,9 @@ proc select*(readfds: var seq[Process], timeout = 500): int {.benign.}
   ##
   ## **Warning**: This function may give unexpected or completely wrong
   ## results on Windows.
+  ##
+  ## **Deprecated since version 0.17.0**: This procedure isn't cross-platform
+  ## and so should not be used in newly written code.
 
 when not defined(useNimRtl):
   proc execProcess(command: string,
previous revision' href='/ahoang/Nim/blame/compiler/vmdeps.nim?h=devel&id=be534279da5021aa5e6621430a52ee1573f1a01f'>^
2a1620490 ^

f9c46b04a ^
ef975d277 ^
728fc441e ^










cd2fbb5f8 ^
728fc441e ^









cd2fbb5f8 ^
728fc441e ^





ef975d277 ^
f9a3de984 ^
ef975d277 ^
92b8fac94 ^
ef975d277 ^




2f43fdb83 ^
92b8fac94 ^
6ea538cec ^
752052e90 ^


1ba785dd7 ^
752052e90 ^





936265df7 ^
752052e90 ^

7324ed7f1 ^


335c19c86 ^
7324ed7f1 ^

752052e90 ^












936265df7 ^
752052e90 ^




936265df7 ^
752052e90 ^




936265df7 ^
752052e90 ^



f9a3de984 ^





752052e90 ^

936265df7 ^
752052e90 ^







936265df7 ^
752052e90 ^





335c19c86 ^
752052e90 ^


936265df7 ^
752052e90 ^


























9700298d0 ^


752052e90 ^





936265df7 ^
752052e90 ^





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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183