-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
safe cleanup handler #4
Comments
thx @jackyq2015, i will keep that in mind for the next update (sometime in November) |
hi @jackyq2015, is this what you meant? 978344a |
@felixlohmeier instead of: The idea is to capture all the the abnormal exit of your application for any reason(manually terminate, your script failed and OR itself failed etc). You would like an ensured clearnup to be executed no matter what. |
thx @jackyq2015, I've got it! |
For main script clean up, it would be nice to put into a function and hook the signal to capture the unexpected exit/terminate:
https://www.ibm.com/developerworks/aix/library/au-usingtraps/index.html
The text was updated successfully, but these errors were encountered: