diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-22 19:11:41 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-22 19:11:41 +0000 |
commit | 0f53d1db7e28a90ec602c09b32fad613d0d47ca5 (patch) | |
tree | 2223ed6e1f6f559a7105db01df29bcaaf5a42cc9 | |
parent | 6b5d39fa3380c1deff75db2b1e18037a11f496fd (diff) | |
download | ATCD-0f53d1db7e28a90ec602c09b32fad613d0d47ca5.tar.gz |
ChangeLogTag:Fri Dec 22 12:56:06 2000 Nanbor Wang <nanbor@cs.wustl.edu>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 8 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 8 | ||||
-rw-r--r-- | ace/ACE.cpp | 8 |
4 files changed, 26 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 64585baf128..6230d28c1fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +Fri Dec 22 12:56:06 2000 Nanbor Wang <nanbor@cs.wustl.edu> + + * ace/ACE.cpp (process_active): Call CloseHandle before return to + avoid handle leaks on Win32. Thanks to Arnaud Compan + <compan@ipanematech.com> for the fix. + Fri Dec 22 13:04:58 2000 Balachandran Natarajan <bala@cs.wustl.edu> - * bin/run_all_list.pm: Added the bidirectional test to the list. + * bin/run_all_list.pm: Added the bidirectional test to the list. Fri Dec 22 12:43:54 2000 Nanbor Wang <nanbor@cs.wustl.edu> diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 64585baf128..6230d28c1fe 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,6 +1,12 @@ +Fri Dec 22 12:56:06 2000 Nanbor Wang <nanbor@cs.wustl.edu> + + * ace/ACE.cpp (process_active): Call CloseHandle before return to + avoid handle leaks on Win32. Thanks to Arnaud Compan + <compan@ipanematech.com> for the fix. + Fri Dec 22 13:04:58 2000 Balachandran Natarajan <bala@cs.wustl.edu> - * bin/run_all_list.pm: Added the bidirectional test to the list. + * bin/run_all_list.pm: Added the bidirectional test to the list. Fri Dec 22 12:43:54 2000 Nanbor Wang <nanbor@cs.wustl.edu> diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 64585baf128..6230d28c1fe 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,6 +1,12 @@ +Fri Dec 22 12:56:06 2000 Nanbor Wang <nanbor@cs.wustl.edu> + + * ace/ACE.cpp (process_active): Call CloseHandle before return to + avoid handle leaks on Win32. Thanks to Arnaud Compan + <compan@ipanematech.com> for the fix. + Fri Dec 22 13:04:58 2000 Balachandran Natarajan <bala@cs.wustl.edu> - * bin/run_all_list.pm: Added the bidirectional test to the list. + * bin/run_all_list.pm: Added the bidirectional test to the list. Fri Dec 22 12:43:54 2000 Nanbor Wang <nanbor@cs.wustl.edu> diff --git a/ace/ACE.cpp b/ace/ACE.cpp index 805f23131d9..a8c83390d63 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -196,12 +196,14 @@ ACE::process_active (pid_t pid) else { DWORD status; + int result = 1; if (::GetExitCodeProcess (process_handle, &status) == 0 || status != STILL_ACTIVE) - return 0; - else - return 1; + result = 0; + + ::CloseHandle (process_handle); + return result; } #endif /* ACE_HAS_PACE */ } |