Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 1 checkin (+456/-486) by Henrik Grubbström (Grubba) <grubba@grubba.org> Lines added/removed recently

Friday 01 September 2017

2017-09-01 14:10:56 (3 weeks ago) 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.

[permalink]

Bugs? Suggestions?