ruby at_exit exit status

前端 未结 0 975
执念已碎
执念已碎 2021-02-13 08:11

Can i determine selves process exit status in at_exit block?

at_exit do
  if this_process_status.success?
    print \'Success\'
  else
    print \'Failure\'
  en         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题