On Thu, Aug 27, 2009 at 15:55, Davide Libenzi<davi...@xmailserver.org> wrote: > Can't the handling be done on close(), like (modulo some errno save/restore):
No. You can have any file descriptor closed when the process is started. No close in the process with the special close.