From cf5ab93576ef3292710840df98ada1d337980fa0 Mon Sep 17 00:00:00 2001 From: Thomas Heinen Date: Tue, 16 Feb 2021 16:34:46 +0100 Subject: [PATCH] Fix crash on exit Signed-off-by: Thomas Heinen --- lib/train/transports/local.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/train/transports/local.rb b/lib/train/transports/local.rb index 47e581833..a390ecb22 100644 --- a/lib/train/transports/local.rb +++ b/lib/train/transports/local.rb @@ -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 @@ -254,4 +254,4 @@ def start_pipe_server(pipe_name) end end end -end \ No newline at end of file +end