deadman
deadman copied to clipboard
A usb-based dead man's switch
…it's current state until critical bugs are addressed.
@flowchartsman Currently there is a logic issue that would ensure the user's freedom could be compromised. checkExe("shutdown") is executed in the shutdownNow() function. If shutdown is not executable for any...
Please consider adding a license to clarify the use of this code.
Ensure that shutdown commands (or any user-specified commands) are executable at startup. With a tool like this, you don't want any surprises other than the one it's designed for.
Instead of polling the platform's version of `lsusb`, the app should try and hook into the native OS as much as possible. Event-based interrupts, FTW. Programmable HIDs are fast little...
Windows 7/8 do not send SIGINT to console apps when the window is closed. This needs to be detected and handled as a reboot scenario, or, if it cannot be...
In keeping with the zero-surprises mode of thinking, deadman should detect, at startup, whether or not it is capable of shutting down. On *nix systems, this means checking whether or...
Initial tests on Windows 8 indicate that Windows 8 requires: - that deadman.exe is run as an administrator - that shutdown can be aborted by an application crashing (evernote in...
It is difficult to keep track of what happened when, so add logging, I have a logging framework for GO, you can use it.
In the event that the process is still alive after the user should optionally be able to specify that they want a shutdown that will proceed no matter what. In...