From b0bfae2a8503c5a1f03ea44906a120e511ba4cf6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 26 May 2010 04:29:36 +0000 Subject: 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 --- tshark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tshark.c') 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 */ -- cgit v1.2.3