Branch: Tag:

2017-09-01

2017-09-01 12:10:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.File(): close() fixes.

Unify low level calls close_fd() and close_fd_quietly() to reduce
code duplication.

Fix error handling in close_fd() and do_close_fd(). POSIX says that
fds are closed on all errors except EINTR, where it is unspecified.
Don't complain about close(2) failing with EBADF if it previously
failed with EINTR.

Ignore close(2) failing with ECONNRESET. This happens on eg FreeBSD
when there is still data pending to be sent and the peer has already
closed the connection.

Fix documentation for the return value of close().

Potential fix for testsuite failures on FreeBSD.

1:   PikeDoc.VERSION = 'Pike v8.1.11'; - PikeDoc.PUBDATE = '2017-08-31'; - PikeDoc.GENERATED = 1512107901; + PikeDoc.PUBDATE = '2017-09-01'; + PikeDoc.GENERATED = 1512107953;