check: set si_signo in a test siginfo

Submitted by Andrei Vagin on Oct. 4, 2018, 9:18 p.m.

Details

Message ID 20181004211809.3493-1-avagin@gmail.com
State New
Series "check: set si_signo in a test siginfo"
Headers show

Commit Message

Andrei Vagin Oct. 4, 2018, 9:18 p.m.
Eric added a check which fails fail sigqueueinfo if si_signo != sig.

Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
 criu/cr-check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/cr-check.c b/criu/cr-check.c
index 4bbe9e098..4bd51a6b0 100644
--- a/criu/cr-check.c
+++ b/criu/cr-check.c
@@ -516,7 +516,7 @@  static int check_ipc(void)
 
 static int check_sigqueuinfo()
 {
-	siginfo_t info = { .si_code = 1 };
+	siginfo_t info = { .si_code = 1, .si_signo = SIGUSR1};
 
 	signal(SIGUSR1, SIG_IGN);