Skip to content

Commit 981dcca

Browse files
committed
ompi: cleanup environment at finalize
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent fb5bcc4 commit 981dcca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/runtime/ompi_mpi_finalize.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ int ompi_mpi_finalize(void)
494494
opal_class_finalize();
495495
}
496496

497+
/* cleanup environment */
498+
opal_unsetenv("OMPI_COMMAND", &environ);
499+
opal_unsetenv("OMPI_ARGV", &environ);
500+
497501
/* All done */
498502

499503
done:

0 commit comments

Comments
 (0)