You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I want to thank you for this great library :)
I mainly use it in a C application and I was looking for a way to get a kind of "warning" before the system actually perform the reboot, this could allow more easier debugging. For example, we could register a callback method to call when "pre-timeout" is trigger, allowing to log current state of the application (this is only an example).
I saw in watchdog kernel documentation that we have ioctl WDIOC_SETPRETIMEOUT which allow to register a trigger before watchdog timeout. We also have ioctl WDIOC_GETTIMELEFT allowing to retrieve remaining time before system reboot.
Do you think this kind of feature can be implemented in this library ? (maybe I'm out of specs here ?)
Have a nice day
The text was updated successfully, but these errors were encountered:
OK. I don't have any use for this myself atm. and I would probably implement it as a libuev timer if I did. If you need it you can add it yourself, and if you want to share it you can make a pull request, then we can have a discussion.
Hello,
First, I want to thank you for this great library :)
I mainly use it in a C application and I was looking for a way to get a kind of "warning" before the system actually perform the reboot, this could allow more easier debugging. For example, we could register a callback method to call when "pre-timeout" is trigger, allowing to log current state of the application (this is only an example).
I saw in watchdog kernel documentation that we have ioctl
WDIOC_SETPRETIMEOUT
which allow to register a trigger before watchdog timeout. We also have ioctlWDIOC_GETTIMELEFT
allowing to retrieve remaining time before system reboot.Do you think this kind of feature can be implemented in this library ? (maybe I'm out of specs here ?)
Have a nice day
The text was updated successfully, but these errors were encountered: