Skip to content

Commit

Permalink
Merge branch 'V23_0-branch'
Browse files Browse the repository at this point in the history
  • Loading branch information
timtheisen committed May 16, 2024
2 parents 4781daa + 23fef6d commit 5a5023c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 4 additions & 0 deletions docs/version-history/lts-versions-23-0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Bugs Fixed:
Before, transfers of job sandboxes would fail after such an error.
:jira:`2398`

- Fixed a bug where the *condor_procd* could crash on Windows EPs
using the default Desktop policy.
:jira:`2444`

.. _lts-version-history-23010:

Version 23.0.10
Expand Down
18 changes: 7 additions & 11 deletions src/condor_utils/process_control.WINDOWS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ static HashTable<DWORD, SuspendedProcess*> suspended_processes(hash_func);
bool
windows_suspend(DWORD pid)
{
// get the list of threads for this process
std::vector<DWORD> tid_array;
if (sys_info.GetTIDs(pid, tid_array) == 0) {
dprintf(D_ALWAYS, "Error: Windows Suspend Process failed to get threads for pid %u\n", pid);
return false;
}

// make sure we haven't already suspended this process, then allocate
// a SuspendedProcess object and add it to the hash table
//
Expand All @@ -214,17 +221,6 @@ windows_suspend(DWORD pid)
//
finished = true;

// get the list of threads for this process
//
std::vector<DWORD> tid_array;
int num_tids = sys_info.GetTIDs(pid, tid_array);
if (num_tids == 0) {
// TODO: we need to handle this case!!!
//
EXCEPT("windows_suspend_process failed: can't get threads for pid %u",
pid);
}

// go through the thread list, calling SuspendThread on each
//
for (size_t i = 0; i < tid_array.size(); i++) {
Expand Down

0 comments on commit 5a5023c

Please sign in to comment.