Moxa V2406-24I-CT-T-XPE [57/81] Special note

Moxa V2406-XPE [57/81] Special note
V2406/2422/2426 Linux User’s Manual Programming Guide
4-7
Function int swtd_ack(int fd)
Description Acknowledge software watchdog.
When software watchdog is enabled, application should execute swtd_ack() periodically
within user predefined time.
Input <fd>
the file handle from swtd_open() return value.
Output None
Return On success, 0 is returned. Otherwise, an error number is return
Function int swtd_close(int fd)
Description Close the file handle.
Input <fd> the file handle from swtd_open() return value.
Output None
Return On success, 0 is returned. Otherwise, an error number is return
Special Note
When you kill the application with -9” or kill without optionor Ctrl+c the kernel will change to auto ack the
software watchdog.
When your application enables the software watchdog and does not ack, your application may have a logical
error, or your application has generated a core dump. The kernel will not change to auto ack. This can cause
your system to reboot again and again.
Examples
The example file watchdog.c and Makefile are put in the folder \example\swatchdog\ on the CD.

Содержание

Похожие устройства

Скачать