Don't call g_log(); as the comment indicates it can cause problems.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 26 May 2011 23:20:35 +0000 (23:20 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 26 May 2011 23:20:35 +0000 (23:20 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37418 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index 74a60adb0805f7ee78a6b16177a1464df6faed5d..918b1e38acb76a58b64b8145fd30b3f8a55b8834 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1365,7 +1365,7 @@ capture_cleanup_handler(DWORD dwCtrlType)
 }
 #else
 static void
-capture_cleanup_handler(int signum)
+capture_cleanup_handler(int signum _U_)
 {
     /* On UN*X, we cleanly shut down the capture on SIGINT, SIGHUP, and
        SIGTERM.  We assume that if the user wanted it to keep running
@@ -1376,11 +1376,6 @@ capture_cleanup_handler(int signum)
      * the "recursion" and abort.
      */
 
-    g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO,
-        "Console: Control signal");
-    g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG,
-        "Console: Control signal %d", signum);
-
     capture_loop_stop();
 }
 #endif