chiark / gitweb /
rationalise use of close, postfork, etc.; proper error handling on most closes