#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include "HA_mon_uap.h"
int main(int argc, char *argv[])
{
/* 変数の定義 */
int rt = 0;
long rc1 = 1;
long rc2 = 1;
int signum;
int inf;
/* hamon_patrolstart関数の発行 */
signum = SIGUSR2;
rc1 = hamon_patrolstart(signum, &inf, NULL);
if(rc1 != 0){
rt = rc1;
goto END_OF_FUNC;
}
else;
while (1) {
:
:
業務処理
:
:
}
/* hamon_patrolstop関数の発行 */
rc2 = hamon_patrolstop(&inf, NULL);
if(rc2 != 0){
rt = rc2;
goto END_OF_FUNC;
}
else;
return(rt);
} |