aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-10-24 04:13:30 +0000
committerGuy Harris <guy@alum.mit.edu>2007-10-24 04:13:30 +0000
commita421b8f96f21b74c29243c5cb498d3cb48d4742a (patch)
treeef27878f070283f81252c91839fe9b2f8a208704 /tshark.c
parent2ef0350a474969c1985802ebcd1f151a34c056f5 (diff)
"sa_mask" in a "struct sigaction" is a sigset_t, which is not
necessarily an integral data type. Use sigemptyset() to clear it. svn path=/trunk/; revision=23257
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tshark.c b/tshark.c
index 20b62647f5..b03372a1c9 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1748,7 +1748,7 @@ capture(void)
and exit. */
action.sa_handler = capture_cleanup;
action.sa_flags = 0;
- action.sa_mask = 0;
+ sigemptyset(&action.sa_mask);
sigaction(SIGTERM, &action, NULL);
sigaction(SIGINT, &action, NULL);
sigaction(SIGHUP, NULL, &oldaction);
@@ -1760,7 +1760,7 @@ capture(void)
quiet mode, report the number of packets we've captured. */
action.sa_handler = report_counts_siginfo;
action.sa_flags = 0;
- action.sa_mask = 0;
+ sigemptyset(&action.sa_mask);
sigaction(SIGINFO, &action, NULL);
#endif /* SIGINFO */
#endif /* _WIN32 */