From 326fcc5ee9d5c7834a51c5743c2964ea1a298ce8 Mon Sep 17 00:00:00 2001 From: Patrick Beard Date: Sun, 25 Jun 2017 21:49:21 -0700 Subject: [PATCH] Avoid busy wait by joining with server thread --- bin/ftpdrb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ftpdrb b/bin/ftpdrb index 6d5dc32..7c8864e 100755 --- a/bin/ftpdrb +++ b/bin/ftpdrb @@ -210,7 +210,7 @@ module FTPDrb puts "FTP server started. Press ENTER or c-C to stop it" $stdout.flush begin - gets + @server.join rescue Interrupt puts "Interrupt" end