[Top][All Lists]

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

Re: zealous use of error

From: Thomas Bushnell, BSG
Subject: Re: zealous use of error
Date: 24 Mar 2002 15:24:38 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

James Morrison <rocketmail_com@rocketmail.com> writes:

>  Previously netfs_make_protid set errno, no matter what.  So to keep this
> behaviour the patch would look like this.

There is no need to always set errno (though you should check all the
callers to make sure--which needed to be done first anyway).

Assuming all the callers are happy, I think it should only set errno
on an actual error return, and otherwise leave errno alone.

Indeed, if there are callers that depend on it clearing errno, I'd
rather see them fixed.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]