1313 * All rights reserved.
1414 * Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
1515 * Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
16- * Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
16+ * Copyright (c) 2013-2019 Intel, Inc. All rights reserved.
1717 * Copyright (c) 2015 Research Organization for Information Science
1818 * and Technology (RIST). All rights reserved.
1919 * $COPYRIGHT$
@@ -98,7 +98,7 @@ static void connection_event_handler(int sd, short flags, void* cbdata);
9898 */
9999int orte_oob_tcp_start_listening (void )
100100{
101- int rc ;
101+ int rc = ORTE_SUCCESS , rc2 = ORTE_SUCCESS ;
102102 mca_oob_tcp_listener_t * listener ;
103103
104104 /* if we don't have any TCP interfaces, we shouldn't be here */
@@ -112,19 +112,19 @@ int orte_oob_tcp_start_listening(void)
112112 }
113113
114114 /* create listen socket(s) for incoming connection attempts */
115- if (ORTE_SUCCESS != (rc = create_listen ())) {
116- ORTE_ERROR_LOG (rc );
117- return rc ;
118- }
115+ rc = create_listen ();
119116
120117#if OPAL_ENABLE_IPV6
121118 /* create listen socket(s) for incoming connection attempts */
122- if (ORTE_SUCCESS != (rc = create_listen6 ())) {
123- ORTE_ERROR_LOG (rc );
124- return rc ;
125- }
119+ rc2 = create_listen6 ();
126120#endif
127121
122+ if (ORTE_SUCCESS != rc && ORTE_SUCCESS != rc2 ) {
123+ /* we were unable to open any listening sockets */
124+ opal_show_help ("help-oob-tcp.txt" , "no-listeners" , true);
125+ return ORTE_ERR_FATAL ;
126+ }
127+
128128 /* if I am the HNP, start a listening thread so we can
129129 * harvest connection requests as rapidly as possible
130130 */
0 commit comments