Skip to content

Commit

Permalink
Merge pull request #666 from tecracer-theinen/theinen/fix-broken-pipe
Browse files Browse the repository at this point in the history
Fix crash on exit
  • Loading branch information
clintoncwolfe authored Feb 16, 2021
2 parents 738b330 + cf5ab93 commit 80e134b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/train/transports/local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def acquire_pipe
@server_pid = start_pipe_server(pipe_name)

# Ensure process is killed when the Train process exits
at_exit { close }
at_exit { close rescue Errno::EIO }

pipe = nil

Expand Down Expand Up @@ -254,4 +254,4 @@ def start_pipe_server(pipe_name)
end
end
end
end
end

0 comments on commit 80e134b

Please sign in to comment.