summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-02-12 00:03:10 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-02-12 00:03:10 +0000
commit2af7f6b948c8adab08d4cb1ba92dda69ba91293b (patch)
treec2f84a13e84ab53b7c54bd12dab922176668b255 /capture_sync.c
parent40632cc673c174f8dff6581bed29ac702938e20a (diff)
downloadwireshark-2af7f6b948c8adab08d4cb1ba92dda69ba91293b.tar.gz
we still need sync_pipe_errmsg_to_parent() for the *NIX build
svn path=/trunk/; revision=17260
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c
index a6aaac0b52..dbefde3497 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -153,6 +153,18 @@ pipe_write_block(int pipe, char indicator, int len, const char *msg)
/*g_warning("write %d leave", pipe);*/
}
+
+#ifndef _WIN32
+void
+sync_pipe_errmsg_to_parent(const char *errmsg)
+{
+ g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, "sync_pipe_errmsg_to_parent: %s", errmsg);
+
+ pipe_write_block(1, SP_ERROR_MSG, strlen(errmsg)+1, errmsg);
+}
+#endif
+
+
#ifdef _WIN32
static void
signal_pipe_capquit_to_child(capture_options *capture_opts)