13
13
* All rights reserved.
14
14
* Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
15
15
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
16
- * Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
16
+ * Copyright (c) 2013-2019 Intel, Inc. All rights reserved.
17
17
* Copyright (c) 2015 Research Organization for Information Science
18
18
* and Technology (RIST). All rights reserved.
19
19
* $COPYRIGHT$
@@ -98,7 +98,7 @@ static void connection_event_handler(int sd, short flags, void* cbdata);
98
98
*/
99
99
int orte_oob_tcp_start_listening (void )
100
100
{
101
- int rc ;
101
+ int rc = ORTE_SUCCESS , rc2 = ORTE_SUCCESS ;
102
102
mca_oob_tcp_listener_t * listener ;
103
103
104
104
/* if we don't have any TCP interfaces, we shouldn't be here */
@@ -112,19 +112,19 @@ int orte_oob_tcp_start_listening(void)
112
112
}
113
113
114
114
/* 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 ();
119
116
120
117
#if OPAL_ENABLE_IPV6
121
118
/* 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 ();
126
120
#endif
127
121
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
+
128
128
/* if I am the HNP, start a listening thread so we can
129
129
* harvest connection requests as rapidly as possible
130
130
*/
0 commit comments