diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-09-29 15:49:06 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-09-29 15:49:06 +0000 |
commit | 5d64bef6e1b9f883c5630df1cac1821caab61f7a (patch) | |
tree | ae871a8a8408799241f76d8c7e012e9dc314e2b2 | |
parent | 560cdd7ed5da447900f14130873e5bf3186cf2ef (diff) | |
download | wireshark-5d64bef6e1b9f883c5630df1cac1821caab61f7a.tar.gz |
Revert most of r45210. We don't use the return value of GetExitCodeProcess(), but it still needs to be called to get childstatus.
svn path=/trunk/; revision=45212
-rw-r--r-- | ui/gtk/gui_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c index e431ea167a..c26af483ec 100644 --- a/ui/gtk/gui_utils.c +++ b/ui/gtk/gui_utils.c @@ -709,6 +709,9 @@ pipe_timer_cb(gpointer data) handle = (HANDLE)_get_osfhandle(pipe_input->source); result = PeekNamedPipe(handle, NULL, 0, NULL, &avail, NULL); + /* Get the child process exit status */ + GetExitCodeProcess((HANDLE)*(pipe_input->child_process), &childstatus); + /* If the Peek returned an error, or there are bytes to be read or the childwatcher thread has terminated then call the normal callback */ |