]> xenbits.xensource.com Git - libvirt.git/commit
virsh-domain: Fix error handling of pthread_sigmask
authorTim Wiederhake <twiederh@redhat.com>
Mon, 1 Feb 2021 12:42:01 +0000 (13:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Feb 2021 14:00:55 +0000 (15:00 +0100)
commit4f5c22b27c7580a93d45e7475580b4dd55fd0da5
tree5a76d3923fd1472b495a11e9eb77213e6af0fdd7
parent2870d99f1b3fe386cf35c145d72a960c84efcad6
virsh-domain: Fix error handling of pthread_sigmask

pthread_sigmask() returns 0 on success and "a non-zero value
on failure", but not neccessarily a negative one.

Found by clang-tidy's "bugprone-posix-return" check.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tools/virsh-domain.c