Skip to content

Commit 45a8b76

Browse files
authored
Merge pull request #4630 from rhc54/cmr2x/debugger
Ensure that daemons NEVER initiate connections to childs
2 parents d793f08 + 57bf75b commit 45a8b76

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

orte/mca/oob/usock/oob_usock.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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-2016 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2016 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* $COPYRIGHT$
@@ -283,7 +283,7 @@ static void process_send(int fd, short args, void *cbdata)
283283
/* try this again after a delay for N times */
284284
op->reps++;
285285
if (20 < op->reps) {
286-
/* we don't know how to talk to this proc,
286+
/* we don't know how to talk to this proc,
287287
* so send this back up to the OOB base so it
288288
* can try another transport
289289
*/
@@ -326,6 +326,11 @@ static void process_send(int fd, short args, void *cbdata)
326326
*/
327327
MCA_OOB_USOCK_QUEUE_PENDING(op->msg, peer);
328328

329+
/* if we are the HNP or daemon, we NEVER initiate connections */
330+
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON) {
331+
return;
332+
}
333+
329334
if (MCA_OOB_USOCK_CONNECTING != peer->state &&
330335
MCA_OOB_USOCK_CONNECT_ACK != peer->state) {
331336
/* we have to initiate the connection - again, we do not

0 commit comments

Comments
 (0)