Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] zsystem flock: zclose descriptor after unsuccessful lock



On Sat, Dec 30, 2017 at 7:32 AM, Sebastian Gniazdowski
<psprint@xxxxxxxxxxx> wrote:
> The patch adds preceding zclose(flock_fd) to all return 1 and return 2 code paths.

Nothing wrong with the patch but the original code structure looks
funny.  Why do we return without calling zwarnnam() when errflag?  I
suppose the assumption is that it only gets set if we already output
some other error message?



Messages sorted by: Reverse Date, Date, Thread, Author