diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-05 02:30:04 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-12-05 02:30:04 +0000 |
commit | 7e0004862b2733ad8180f373936e3a4f8d6b922d (patch) | |
tree | a25eeb885f920aaffdfd0f8ad08d72f9fd9ec82d /capture_loop.c | |
parent | e3f1f331a2295f45c44cabc0f973ae9db8002191 (diff) |
I've forgot to put one line under _WIN32, should fix the unix build
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16679 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_loop.c')
-rw-r--r-- | capture_loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/capture_loop.c b/capture_loop.c index c38265ca78..8463a8f3df 100644 --- a/capture_loop.c +++ b/capture_loop.c @@ -1202,7 +1202,11 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct /* We haven't yet gotten the capture statistics. */ *stats_known = FALSE; -#ifndef _WIN32 +#ifdef _WIN32 + /* get the initial state of the signal pipe */ + /* (if it's already stopped here, ignore it later) */ + signal_pipe_enabled = !signal_pipe_stopped(); +#else /* * Catch SIGUSR1, so that we exit cleanly if the parent process * kills us with it due to the user selecting "Capture->Stop". @@ -1210,10 +1214,6 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct signal(SIGUSR1, capture_loop_stop_signal_handler); #endif - /* get the initial state of the signal pipe */ - /* (if it's already stopped here, ignore it later) */ - signal_pipe_enabled = !signal_pipe_stopped(); - g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, "Capture child starting ..."); capture_opts_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, capture_opts); |