aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/advanced.source
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-04-01 20:12:22 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-04-01 20:12:22 +0000
commit93001dfd18241e11d4f1e188a813c247b143c2e4 (patch)
treeb9d7631ce13209dc266fabc036bea2d0ee140e4c /src/tutorial/advanced.source
parent799c0d3f65082591583086949bba2be159a36e32 (diff)
downloadpostgresql-93001dfd18241e11d4f1e188a813c247b143c2e4.tar.gz
postgresql-93001dfd18241e11d4f1e188a813c247b143c2e4.zip
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. In 8.2 and 8.3 also backpatch the earlier change to use DEVNULL instead of NULL_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, while DEVNULL works on all platforms. Restarting syslogger didn't work on Windows on versions 8.3 and below because of that.
Diffstat (limited to 'src/tutorial/advanced.source')
0 files changed, 0 insertions, 0 deletions