[Pkg-nagios-changes] [pkg-mod-gearman] 26/48: be more verbose on errors
Stig Sandbeck Mathisen
ssm at debian.org
Sun Nov 24 22:38:10 UTC 2013
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository pkg-mod-gearman.
commit 61c8b0cff09bdb4c0dc49aa73df343f9e9cfabf8
Author: Sven Nierlein <sven at nierlein.de>
Date: Thu Oct 31 23:35:05 2013 +0100
be more verbose on errors
---
t/02-full.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/t/02-full.c b/t/02-full.c
index d300527..1046e19 100644
--- a/t/02-full.c
+++ b/t/02-full.c
@@ -364,6 +364,9 @@ int main (int argc, char **argv, char **env) {
exit( EXIT_FAILURE );
}
if(!ok(pid_alive(gearmand_pid) == TRUE, "gearmand alive")) {
+ check_logfile("/tmp/gearmand.log", 3);
+ kill(gearmand_pid, SIGTERM);
+ kill(worker_pid, SIGTERM);
exit( EXIT_FAILURE );
}
if(!ok(worker_pid > 0, "worker started with pid: %d", worker_pid))
@@ -371,6 +374,7 @@ int main (int argc, char **argv, char **env) {
if(!ok(pid_alive(worker_pid) == TRUE, "worker alive")) {
check_logfile(worker_logfile, 3);
kill(gearmand_pid, SIGTERM);
+ kill(worker_pid, SIGTERM);
exit( EXIT_FAILURE );
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-mod-gearman
More information about the Pkg-nagios-changes
mailing list