Closed cohensbw closed 3 months ago
Uhm, the problem is that we're returning the exit status from the failing run
at https://github.com/JuliaParallel/MPI.jl/blob/7b97da711b90f2c0769ffe513a946958b4ec8ae1/bin/mpiexecjl#L64 which is always 1
, whatever is the exit status of the subprocess:
% julia -e 'run(`bash -c "exit 2"`)' 2> /dev/null; echo $?
1
run
doesn't propagate the exit code. You need success
or manually capture and propagate it
If the command
is run, the reported exit status returned by
will always return
1
regardless of the argument ofexit()
.