aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/capture.c b/capture.c
index 703c674764..86b7cd1ba3 100644
--- a/capture.c
+++ b/capture.c
@@ -314,8 +314,6 @@ capture_child_stop_signal_handler(int signo _U_)
int
capture_child_start(capture_options *capture_opts, gboolean *stats_known, struct pcap_stat *stats)
{
- g_assert(capture_opts->capture_child);
-
#ifndef _WIN32
/*
* Catch SIGUSR1, so that we exit cleanly if the parent process
@@ -328,18 +326,20 @@ capture_child_start(capture_options *capture_opts, gboolean *stats_known, struct
}
void
-capture_stop(capture_options *capture_opts)
+capture_child_stop(capture_options *capture_opts)
{
- /* stop the capture child, if we have one */
- if (!capture_opts->capture_child) {
- sync_pipe_stop(capture_opts);
- }
-
/* stop the capture loop */
capture_loop_stop();
}
void
+capture_stop(capture_options *capture_opts)
+{
+ /* stop the capture child, if we have one */
+ sync_pipe_stop(capture_opts);
+}
+
+void
capture_kill_child(capture_options *capture_opts)
{
/* kill the capture child, if we have one */