Something

This commit is contained in:
Anton Hvornum 2019-04-14 18:55:35 +02:00
parent e3b60326e0
commit 35cfef9857
1 changed files with 4 additions and 0 deletions

View File

@ -191,7 +191,11 @@ class sys_command():
# Bail bail bail!
os.write(child_fd, b'shutdown now\n')
print('Shutdown initatied')
exit_code = os.waitpid(self.pid, 0)[1]
print('Exit code:', exit_code)
if exit_code != 0:
print('[E] Command "{}" exited with status code:'.format(self.cmd[0]), exit_code)
print(trace_log)