Skip to content

Commit

Permalink
Correctly determine when to daemonize backend prted
Browse files Browse the repository at this point in the history
We don't pass the --daemonize cmd line option to the prted's,
so look only at the --leave-session-attached and --debug-daemons
options

Signed-off-by: Ralph Castain <[email protected]>
  • Loading branch information
rhc54 committed Mar 21, 2022
1 parent 0db143d commit 514553d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/prted/prted.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ int main(int argc, char *argv[])
/* detach from controlling terminal
* otherwise, remain attached so output can get to us
*/
if (pmix_cmd_line_is_taken(&results, PRTE_CLI_DAEMONIZE)) {
if (!prte_leave_session_attached && !prte_debug_daemons_flag) {
pipe(wait_pipe);
prte_state_base_parent_fd = wait_pipe[1];
prte_daemon_init_callback(NULL, wait_dvm);
Expand Down

0 comments on commit 514553d

Please sign in to comment.