diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-26 04:29:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-26 04:29:36 +0000 |
commit | b0bfae2a8503c5a1f03ea44906a120e511ba4cf6 (patch) | |
tree | ed8712ca86cccd5fe0e0bbd7a99f4f95abb66527 /tshark.c | |
parent | 12b5361a7be85bb7b22fd40be2feacba017e72a4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |