1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

signals: fix comparison flaw

commit 9a689fb8f0a6b1675a4e819f4837bf2e0269832f
fixed SIGINT blocking but introduced a comparision
flaw to sigint_restore().

Related: rhbz1440766
This commit is contained in:
Heinz Mauelshagen 2017-04-10 18:29:26 +02:00
parent 9a689fb8f0
commit a14a8cef2f

View File

@ -98,7 +98,7 @@ void sigint_restore(void)
return;
if (!_handler_installed ||
--_handler_installed > MAX_SIGINTS)
--_handler_installed >= MAX_SIGINTS)
return;
/* Nesting count went below MAX_SIGINTS. */