[CRIU] [PATCH] cr-dump: getpriority() can return a negative value
Cyrill Gorcunov
gorcunov at gmail.com
Tue Mar 15 08:13:32 PDT 2016
On Tue, Mar 15, 2016 at 09:23:30AM +0300, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
>
> 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.
>
> Cc: Filipe Brandenburger <filbranden at google.com>
> Fixes: 16e673c2f6a0 ("cr-check: Inspect errno on syscall failures")
> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>
More information about the CRIU
mailing list