Skip to content

Flux procmgr prints incorrect error message #166

@SamHerts

Description

@SamHerts

Bug:

init_readymsg prints -1 as an error message instead of the desired pipe error message

Spindle/src/flux/procmgr.c

Lines 97 to 102 in 585dacf

result = pipe(ready_pipe);
if (result == -1) {
error = result;
fprintf(stderr, "Could not create ready pipe for spindle session: %s\n", strerror(error));
return -1;
}

Fix:

 result = pipe(ready_pipe); 
 if (result == -1) { 
    error = errno; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions