Skip to content

Commit

Permalink
Merge pull request #887 from rhc54/cmr22/clean
Browse files Browse the repository at this point in the history
Ensure we only open the pshmem framework once
  • Loading branch information
Ralph Castain committed Oct 19, 2018
2 parents 9a1a55b + 065f19a commit 5c207fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/pmix_mca.m4
Expand Up @@ -11,7 +11,7 @@ dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved.
dnl Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved.
dnl Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
dnl Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
Expand Down Expand Up @@ -428,7 +428,7 @@ AC_DEFUN([MCA_CONFIGURE_FRAMEWORK],[
# Create the final .h file that will be included in the type's
# top-level glue. This lists all the static components. We don't
# need to do this for "common".
if test "$2" != "common"; then
if test "$1" != "common"; then
cat > $outfile <<EOF
/*
* \$HEADER\$
Expand Down
5 changes: 4 additions & 1 deletion src/mca/pshmem/base/pshmem_base_frame.c
Expand Up @@ -11,7 +11,7 @@
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2012-2013 Los Alamos National Security, Inc. All rights reserved.
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
* Copyright (c) 2015-2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
Expand Down Expand Up @@ -60,6 +60,9 @@ static pmix_status_t pmix_pshmem_close(void)

static pmix_status_t pmix_pshmem_open(pmix_mca_base_open_flag_t flags)
{
if (initialized) {
return PMIX_SUCCESS;
}
/* initialize globals */
initialized = true;

Expand Down

0 comments on commit 5c207fe

Please sign in to comment.