diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-02-12 00:03:10 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-02-12 00:03:10 +0000 |
commit | 2af7f6b948c8adab08d4cb1ba92dda69ba91293b (patch) | |
tree | c2f84a13e84ab53b7c54bd12dab922176668b255 | |
parent | 40632cc673c174f8dff6581bed29ac702938e20a (diff) | |
download | wireshark-2af7f6b948c8adab08d4cb1ba92dda69ba91293b.tar.gz wireshark-2af7f6b948c8adab08d4cb1ba92dda69ba91293b.tar.bz2 wireshark-2af7f6b948c8adab08d4cb1ba92dda69ba91293b.zip |
we still need sync_pipe_errmsg_to_parent() for the *NIX build
svn path=/trunk/; revision=17260
-rw-r--r-- | capture_sync.c | 12 |
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) |