Skip to content

Commit

Permalink
add wait(Process), returning its exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jun 17, 2013
1 parent 3771bf2 commit d94d15f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,4 +539,6 @@ function wait_success(x::ProcessChain)
s
end

wait(p::Process) = (wait_exit(p); p.exit_code)

show(io::IO, p::Process) = print(io, "Process(", p.cmd, ", ", process_status(p), ")")

0 comments on commit d94d15f

Please sign in to comment.