-
Notifications
You must be signed in to change notification settings - Fork 11
Implement process_watchdog #517
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
base: master
Are you sure you want to change the base?
Conversation
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Types are now provided by windows.h which is always included first.
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Just curious why you created a linux and windows watchdog and didn't just create one watchdog file and use the threadpool_timer which is platform agnostic? |
|
Because I didn't want this to be dependent on threadpool. That way, I can use this for threadpool_int. In reply to: 3761788926 |
|
|
||
| /*Codes_SRS_PROCESS_WATCHDOG_43_006: [ on_timer_expired shall call LogCriticalAndTerminate to terminate the process. ]*/ | ||
| LogCriticalAndTerminate("Process watchdog timeout after %" PRIu32 " ms", g_timeout_ms); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, stay with me on this one.
You might want to check the g_watchdog_state to make sure that the stat is WATCHDOG_STATE_INITIALIZED here because of this:
"timer_delete() does not flush pending signals.
It only prevents future expirations."
jebrando
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
mattdurak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
/Azurepipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
No description provided.