Skip to content

Commit

Permalink
fixup! Fix: avoid evloop after fork to report failures in Process.spa…
Browse files Browse the repository at this point in the history
…wn (UNIX)
  • Loading branch information
ysbaddaden committed Sep 5, 2024
1 parent cff10e4 commit b061503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/system/unix/process.cr
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ struct Crystal::System::Process
# Pipe was closed, no error
when 0
# Error message coming
message = reader.gets_to_end
message = reader_pipe.gets_to_end
raise RuntimeError.new("Error executing process: '#{command_args[0]}': #{message}")
when 1
# Errno coming
Expand Down

0 comments on commit b061503

Please sign in to comment.