Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/prted/prte.c
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ static void abort_signal_callback(int fd)
second = false;
} else {
surekill(); // ensure we attempt to kill everything
pmix_os_dirpath_destroy(prte_process_info.top_session_dir, true, NULL);
prte_job_session_dir_finalize(NULL);
exit(1);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/prte_finalize.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "src/runtime/runtime.h"
#include "src/util/name_fns.h"
#include "src/util/proc_info.h"
#include "src/util/session_dir.h"

int prte_finalize(void)
{
Expand Down Expand Up @@ -79,7 +80,7 @@ int prte_finalize(void)
prte_finalizing = true;

// we always must cleanup the session directory tree
pmix_os_dirpath_destroy(prte_process_info.top_session_dir, true, NULL);
prte_job_session_dir_finalize(NULL);

#ifdef PRTE_PICKY_COMPILERS
/* release the cache */
Expand Down
3 changes: 2 additions & 1 deletion src/util/session_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2015-2020 Intel, Inc. All rights reserved.
* Copyright (c) 2021-2025 Nanook Consulting All rights reserved.
* Copyright (c) 2021-2026 Nanook Consulting All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -293,6 +293,7 @@ void prte_job_session_dir_finalize(prte_job_t *jdata)
if (prte_finalizing) {
if (NULL != prte_process_info.top_session_dir) {
pmix_os_dirpath_destroy(prte_process_info.top_session_dir, true, _check_file);
/* if the top session dir is now empty, remove it */
rmdir(prte_process_info.top_session_dir);
free(prte_process_info.top_session_dir);
prte_process_info.top_session_dir = NULL;
Expand Down
Loading