aboutsummaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-02-03 12:08:00 -0800
committerGuy Harris <guy@alum.mit.edu>2020-02-03 12:08:00 -0800
commit68ccaee85aeb655eaf39a93e08ae1bfc04787536 (patch)
tree0626f635a3de08bbb4d777d1dd6a62647649ad14 /testprogs
parentced681d21a2e47e90387dd326eda03060d1b8643 (diff)
sa_mask is a sigset_t, which is not guaranteed to be an int.
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/capturetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testprogs/capturetest.c b/testprogs/capturetest.c
index ed649529..545ac9e3 100644
--- a/testprogs/capturetest.c
+++ b/testprogs/capturetest.c
@@ -195,7 +195,7 @@ main(int argc, char **argv)
struct sigaction action;
action.sa_handler = sigint_handler;
- action.sa_mask = 0;
+ sigemptyset(&action.sa_mask);
/*
* Should SIGINT interrrupt, or restart, system calls?