Skip to content

Commit

Permalink
[poed]Add exitcode printing for reason of exit
Browse files Browse the repository at this point in the history
1. Add exitcode printing for reason of exit
2. Change exit function usage.

Signed-off-by: leon.chiang <[email protected]>
  • Loading branch information
leonchiang committed Jan 6, 2022
1 parent f653f19 commit f24abd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dentos-poe-agent/opt/poeagent/bin/poed.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ def poed_exit(sig=0, frame=None,ret_code=0):
global thread_flag
remove_file(POED_BUSY_FLAG)
thread_flag = False
exit(ret_code)
print_stderr("exitcode={0}".format(ret_code))
os._exit(ret_code)

if __name__ == "__main__":
try:
Expand Down

0 comments on commit f24abd7

Please sign in to comment.