[CRIU] [PATCH] cr-dump: getpriority() can return a negative value

Filipe Brandenburger filbranden at google.com
Tue Mar 15 09:44:32 PDT 2016


Hi Andrew,

On Mon, Mar 14, 2016 at 11:23 PM, Andrey Vagin <avagin at openvz.org> wrote:
> Since getpriority() can legitimately return the value -1, it is necessary
> to clear the external variable errno prior to the call, then check
> it afterward to determine if -1 is an error or a legitimate value.

Indeed, looks good. Sorry for being too eager in looking for cases
where errno was being set... This one is indeed legit. Thanks for
fixing it back!

Cheers,
Filipe


More information about the CRIU mailing list