diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-05-22 08:24:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-05-22 08:24:30 +0000 |
commit | e964f27f3981089342bc9f95d9f228fc98ca8454 (patch) | |
tree | 2e3107704c92c43c22c770ad33ab908470fdb281 /capture_sync.c | |
parent | be5b14755a4dce4186d6fa4f86997033765d58df (diff) |
Fix the Windows side to look for the signal pipe stuff in cap_session.
svn path=/trunk/; revision=49497
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c index a6319c4be0..1da5235fd2 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -617,7 +617,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session) sync_pipe_read_fd = _open_osfhandle( (long) sync_pipe_read, _O_BINARY); /* associate the operating system filehandle to a C run-time file handle */ - capture_opts->signal_pipe_write_fd = _open_osfhandle( (long) signal_pipe, _O_BINARY); + cap_session->signal_pipe_write_fd = _open_osfhandle( (long) signal_pipe, _O_BINARY); #else /* _WIN32 */ if (pipe(sync_pipe) < 0) { @@ -678,7 +678,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session) report_failure("Couldn't create child process: %s", g_strerror(errno)); ws_close(sync_pipe_read_fd); #ifdef _WIN32 - ws_close(capture_opts->signal_pipe_write_fd); + ws_close(cap_session->signal_pipe_write_fd); #endif return FALSE; } @@ -1680,7 +1680,7 @@ sync_pipe_input_cb(gint source, gpointer user_data) cap_session->fork_child_status = ret; #ifdef _WIN32 - ws_close(capture_opts->signal_pipe_write_fd); + ws_close(cap_session->signal_pipe_write_fd); #endif capture_input_closed(cap_session, primary_msg); g_free(primary_msg); |