]> The Tcpdump Group git mirrors - tcpdump/commitdiff
We can catch SIGINT on Windows as well.
authorGuy Harris <[email protected]>
Sat, 21 Oct 2017 17:47:58 +0000 (10:47 -0700)
committerGuy Harris <[email protected]>
Sat, 21 Oct 2017 17:48:08 +0000 (10:48 -0700)
tcpdump.c

index 3eae55f02ba872d70239a0ecd206ccb9ddf40dfb..59d948f6b2999173e9837d820fdb4cae6f1fb869 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2004,8 +2004,8 @@ main(int argc, char **argv)
 #ifndef _WIN32
        (void)setsignal(SIGPIPE, cleanup);
        (void)setsignal(SIGTERM, cleanup);
-       (void)setsignal(SIGINT, cleanup);
 #endif /* _WIN32 */
+       (void)setsignal(SIGINT, cleanup);
 #if defined(HAVE_FORK) || defined(HAVE_VFORK)
        (void)setsignal(SIGCHLD, child_cleanup);
 #endif