SystemCommand: Added an explicit 255 status code when system didn't got the exit status (because of segfault, …)

Avoid silent errors.
This commit is contained in:
Colin Darie 2018-08-29 16:47:51 +02:00
parent cedcc08f34
commit 70530727ca
No known key found for this signature in database
GPG Key ID: 4FB865FDBCA4BCC4
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class SystemCommand
SystemCommandResult.new(
syscmd,
status.exitstatus,
status.exitstatus || 255,
stdout.read.strip,
stderr.read.strip,
)