|
17 | 17 | * Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
|
18 | 18 | * Copyright (c) 2017 Research Organization for Information Science
|
19 | 19 | * and Technology (RIST). All rights reserved.
|
| 20 | + * Copyright (c) 2017 IBM Corporation. All rights reserved. |
20 | 21 | * $COPYRIGHT$
|
21 | 22 | *
|
22 | 23 | * Additional copyrights may follow
|
@@ -755,6 +756,18 @@ static int rte_init(void)
|
755 | 756 | true, error, ORTE_ERROR_NAME(ret), ret);
|
756 | 757 | }
|
757 | 758 |
|
| 759 | + /* remove my contact info file, if we have session directories */ |
| 760 | + if (NULL != orte_process_info.job_session_dir) { |
| 761 | + jobfam_dir = opal_dirname(orte_process_info.job_session_dir); |
| 762 | + contact_path = opal_os_path(false, jobfam_dir, "contact.txt", NULL); |
| 763 | + free(jobfam_dir); |
| 764 | + unlink(contact_path); |
| 765 | + free(contact_path); |
| 766 | + } |
| 767 | + /* remove our use of the session directory tree */ |
| 768 | + orte_session_dir_finalize(ORTE_PROC_MY_NAME); |
| 769 | + /* ensure we scrub the session directory tree */ |
| 770 | + orte_session_dir_cleanup(ORTE_JOBID_WILDCARD); |
758 | 771 | return ORTE_ERR_SILENT;
|
759 | 772 | }
|
760 | 773 |
|
@@ -820,6 +833,8 @@ static int rte_finalize(void)
|
820 | 833 | (void) mca_base_framework_close(&orte_rml_base_framework);
|
821 | 834 | (void) mca_base_framework_close(&orte_oob_base_framework);
|
822 | 835 |
|
| 836 | + /* remove our use of the session directory tree */ |
| 837 | + orte_session_dir_finalize(ORTE_PROC_MY_NAME); |
823 | 838 | /* ensure we scrub the session directory tree */
|
824 | 839 | orte_session_dir_cleanup(ORTE_JOBID_WILDCARD);
|
825 | 840 |
|
|
0 commit comments