- Notifications
You must be signed in to change notification settings - Fork5
Commit93001df
committed
Don't pass an invalid file handle to dup2(). That causes a crash on
Windows, thanks to a feature in CRT called Parameter Validation.Backpatch to 8.2, which is the oldest version supported on Windows. In8.2 and 8.3 also backpatch the earlier change to use DEVNULL instead ofNULL_DEV #define for a /dev/null-like device. NULL_DEV was hard-coded to"/dev/null" regardless of platform, which didn't work on Windows, whileDEVNULL works on all platforms. Restarting syslogger didn't work onWindows on versions 8.3 and below because of that.1 parent799c0d3 commit93001df
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
198 |
| - | |
199 |
| - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 |
| |
201 | 204 |
| |
202 | 205 |
| |
|
0 commit comments
Comments
(0)