diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-27 14:38:12 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-27 14:38:12 +0000 |
commit | aeab5efe07c7865c2e084ae4ad41a58592f0a106 (patch) | |
tree | 44a7250738e66711fc6ee34367a541f2b611bd04 /sbin/hastd/hooks.h | |
parent | dd3961e615cb3f103c9d0bd0c4c18e1cb3773869 (diff) | |
download | FreeBSD-src-aeab5efe07c7865c2e084ae4ad41a58592f0a106.zip FreeBSD-src-aeab5efe07c7865c2e084ae4ad41a58592f0a106.tar.gz |
- Run hooks in background - don't block waiting for them to finish.
- Keep all hooks we're running in a global list, so we can report when
they finish and also report when they are running for too long.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin/hastd/hooks.h')
-rw-r--r-- | sbin/hastd/hooks.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/hastd/hooks.h b/sbin/hastd/hooks.h index 799b781..d18ddc4 100644 --- a/sbin/hastd/hooks.h +++ b/sbin/hastd/hooks.h @@ -1,5 +1,6 @@ /*- * Copyright (c) 2010 The FreeBSD Foundation + * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org> * All rights reserved. * * This software was developed by Pawel Jakub Dawidek under sponsorship from @@ -33,8 +34,11 @@ #define _HOOKS_H_ #include <stdarg.h> +#include <stdbool.h> -int hook_exec(const char *path, ...); -int hook_execv(const char *path, va_list ap); +void hook_init(void); +void hook_check(bool sigchld); +void hook_exec(const char *path, ...); +void hook_execv(const char *path, va_list ap); #endif /* !_HOOKS_H_ */ |