X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Flib%2Fwatchdog.h;h=8d39d38bda8d1254e3559f48169012987cb36086;hb=28b98a207e5834c4066b6565c4210220957452e4;hp=e921bdeafb85937cb96da6cd4ed388d9e5f56a4b;hpb=9ad4fea5f1df53de700c0000f5cc8e47de41e2cf;p=bacula%2Fbacula diff --git a/bacula/src/lib/watchdog.h b/bacula/src/lib/watchdog.h index e921bdeafb..8d39d38bda 100644 --- a/bacula/src/lib/watchdog.h +++ b/bacula/src/lib/watchdog.h @@ -24,13 +24,20 @@ */ +#define TYPE_CHILD 1 +#define TYPE_PTHREAD 2 + +#define TIMEOUT_SIGNAL SIGUSR2 + typedef struct s_btimer_t { struct s_btimer_t *next; struct s_btimer_t *prev; time_t start_time; int32_t wait; - pid_t pid; + pid_t pid; /* process id if TYPE_CHILD */ int killed; + int type; + pthread_t tid; /* thread id if TYPE_PTHREAD */ } btimer_t; #define btimer_id btimer_t *