From: Kern Sibbald Date: Thu, 12 Dec 2002 10:51:11 +0000 (+0000) Subject: Add watchdog.h X-Git-Tag: Release-1.28~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ad4fea5f1df53de700c0000f5cc8e47de41e2cf;p=bacula%2Fbacula Add watchdog.h git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@237 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/watchdog.h b/bacula/src/lib/watchdog.h new file mode 100644 index 0000000000..e921bdeafb --- /dev/null +++ b/bacula/src/lib/watchdog.h @@ -0,0 +1,36 @@ +/* + * Watchdog timer routines + * + * Kern Sibbald, December MMII + * +*/ +/* + Copyright (C) 2002 Kern Sibbald and John Walker + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program; if not, write to the Free + Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + MA 02111-1307, USA. + + */ + +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; + int killed; +} btimer_t; + +#define btimer_id btimer_t *