tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: close and ERESTART



On Mon, 26 Dec 2011 05:19:22 +0000
Taylor R Campbell <campbell+netbsd%mumble.net@localhost> wrote:

> +
> +     error = fd_close(SCARG(uap, fd));
> +     if (error == ERESTART)
> +             error = EINTR;
> +
> +     return error;

If it's also guaranteed that the file descriptor state is closed in the
event of an ERESTART error, I like this, personally.
-- 
Matt


Home | Main Index | Thread Index | Old Index