Something
This commit is contained in:
parent
e3b60326e0
commit
35cfef9857
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue