Audio (340) Datatype (50) Demo (203) Development (592) Document (22) Driver (100) Emulation (146) Game (984) Graphics (491) Library (112) Network (230) Office (65) Utility (907) Video (68)
Total files: 4310
Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
|
Watchdog-Handler | Description: | A Linux "/dev/watchdog" like AmigaDOS handler | Download: | watchdog.lha (TIPS: Use the right click menu if your browser takes you back here all the time) | Size: | 13kb | Version: | 53.0 | Date: | 14 Mar 2015 | Author: | Massimiliano Scarano | Submitter: | Massimiliano Scarano | Email: | mscarano/libero it | Requirements: | AmigaOS 4.1 Update 1 | Category: | driver/handler | License: | BSD | Distribute: | yes | Min OS Version: | 4.1 | FileID: | 9214 | | | Comments: | 0 | Snapshots: | 0 | Videos: | 0 | Downloads: | 134 (Current version) | | 134 (Accumulated) | Votes: | 1 (0/0) (30 days/7 days) | |
[ OVERVIEW ]
Watchdog-Handler is an AmigaDOS handler like /dev/watchdog in Linux.
It will reboot the system if it is not fed at certain time.
Its main use is to prevent situations where an application for
some reasons may hang and nobody can press the reset button.
[ REQUIREMENTS ]
- AmigaOS 4.1 Update 1 running on PowerPC based computers
[ INSTALLATION ]
1) > Copy Watchdog-Handler to L:
2) > Copy WATCHDOG to Devs:DOSDrivers
[ USAGE ]
dos.library functions <-> DOS Packets
1)
The watchdog is automatically started once you open it,
if no timeout is provided a default of 60 seconds is used:
Fh = Open( "WATCHDOG:TimeoutInSeconds", MODE_OLDFILE )
ACTION_FINDINPUT
ACTION_FINDUPDATE
ACTION_FINDOUTPUT
2)
To feed the watchdog write any character into it:
ReturnedLength = Write( Fh, "w", 1 )
ReturnedLength = Write( Fh, "VVV", 3 )
ACTION_WRITE
3)
To stop the watchdog close it:
Close( Fh )
ACTION_END
[ VERSION HISTORY ]
- Version 53.0 released 13-Mar-2015, first public release
[ PAYPAL DONATE ]
Support my projects for AmigaOS 4.x with a PayPal donation thanks.
PayPal donate to mscarano()libero.it
|