On Tuesday 20 November 2007, devzero@web.de wrote:
mhhh - since it cost me more then one hour to find out why my machine reboots and triggering a reboot by just _reading_ a file on my system, device node or not is at least very weird behaviour from a user`s perspective.
Root's perspective != user's perspective. Normal users don't have access to /dev/watchdog (if they do, your system is misconfigured).
it`s looks a little bit too simple for me. triggering a reboot just by some simple open() and read() and close() ? let`s wait what the maintainer has to tell.
If you do it as root - yes. /dev/watchdog won't be the only culprit.
Cheers, Kuba