aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-26 04:29:36 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-26 04:29:36 +0000
commitb0bfae2a8503c5a1f03ea44906a120e511ba4cf6 (patch)
treeed8712ca86cccd5fe0e0bbd7a99f4f95abb66527 /tshark.c
parent12b5361a7be85bb7b22fd40be2feacba017e72a4 (diff)
Don't send ^T output to the standard error if we're a capture child.
Make SIGINFO a restart-the-system-call signal, so reads etc. don't return an error. svn path=/trunk/; revision=32968
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index aa0f9ef098..c723108a68 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1884,7 +1884,7 @@ capture(void)
/* Catch SIGINFO and, if we get it and we're capturing to a file in
quiet mode, report the number of packets we've captured. */
action.sa_handler = report_counts_siginfo;
- action.sa_flags = 0;
+ action.sa_flags = SA_RESTART;
sigemptyset(&action.sa_mask);
sigaction(SIGINFO, &action, NULL);
#endif /* SIGINFO */