From 70530727ca25fb8f4eeafaa4d94c74341ee45617 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 29 Aug 2018 16:47:51 +0200 Subject: [PATCH] =?UTF-8?q?SystemCommand:=20Added=20an=20explicit=20255=20?= =?UTF-8?q?status=20code=20when=20system=20didn't=20got=20the=20exit=20sta?= =?UTF-8?q?tus=20(because=20of=20segfault,=20=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid silent errors. --- app/services/system_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/system_command.rb b/app/services/system_command.rb index 04b1957..52dfdc9 100644 --- a/app/services/system_command.rb +++ b/app/services/system_command.rb @@ -44,7 +44,7 @@ class SystemCommand SystemCommandResult.new( syscmd, - status.exitstatus, + status.exitstatus || 255, stdout.read.strip, stderr.read.strip, )