summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-05-19 04:30:05 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-05-19 04:30:05 +0000
commit3a2a342fc4e7fb1a0c524c1dd46aac1c550a9897 (patch)
tree42c39f2b2d6add62f4b479d25a2633bfda94f123 /capture_sync.c
parentd07dcf9256c642c86a2d23e71fd2650cdf9036e2 (diff)
downloadwireshark-3a2a342fc4e7fb1a0c524c1dd46aac1c550a9897.tar.gz
Move the debug output for the generated command line arguments to the correct place.
svn path=/trunk/; revision=37276
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c
index dcaa6975e4..c76acb7589 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -509,6 +509,9 @@ sync_pipe_start(capture_options *capture_opts) {
argv = sync_pipe_add_arg(argv, &argc, "-w");
argv = sync_pipe_add_arg(argv, &argc, capture_opts->save_file);
}
+ for (i = 0; i < argc; i++) {
+ g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "argv[%d]: %s", i, argv[i]);
+ }
#ifdef _WIN32
/* init SECURITY_ATTRIBUTES */
@@ -604,9 +607,6 @@ sync_pipe_start(capture_options *capture_opts) {
*/
dup2(sync_pipe[PIPE_WRITE], 2);
ws_close(sync_pipe[PIPE_READ]);
- for (i = 0; i < argc; i++) {
- g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "argv[%d]: %s", i, argv[i]);
- }
execv(argv[0], (gpointer)argv);
g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
argv[0], strerror(errno));