File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -2278,6 +2278,23 @@ static void orte_debugger_init_before_spawn(orte_job_t *jdata)
2278
2278
opal_setenv (env_name , "1" , true, & app -> env );
2279
2279
}
2280
2280
free (env_name );
2281
+
2282
+ /* setup the attach fifo in case someone wants to re-attach */
2283
+ if (orte_create_session_dirs ) {
2284
+ /* create the attachment FIFO and setup readevent - cannot be
2285
+ * done if no session dirs exist!
2286
+ */
2287
+ attach_fifo = opal_os_path (false, orte_process_info .job_session_dir ,
2288
+ "debugger_attach_fifo" , NULL );
2289
+ if ((mkfifo (attach_fifo , FILE_MODE ) < 0 ) && errno != EEXIST ) {
2290
+ opal_output (0 , "CANNOT CREATE FIFO %s: errno %d" , attach_fifo , errno );
2291
+ free (attach_fifo );
2292
+ return ;
2293
+ }
2294
+ strncpy (MPIR_attach_fifo , attach_fifo , MPIR_MAX_PATH_LENGTH - 1 );
2295
+ free (attach_fifo );
2296
+ open_fifo ();
2297
+ }
2281
2298
}
2282
2299
2283
2300
static bool mpir_breakpoint_fired = false;
You can’t perform that action at this time.
0 commit comments