-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add self timeout and crash if exceeded. (#1502)
Log callstack on timeout. What I did Add self timeout and crash on timeout. Before crash log the error and call stack. How I did it Add a signal based alarm and the handler to print error & call stack. How to verify it Artificially introduce a sleep (> TIMEOUT, which is 2mins) in the script in any function that is in the call path. Invoke the script. Watch it crash and note the error & stack logged in syslog.
- Loading branch information
1 parent
aa71231
commit 19d4042
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters