[sheepdog] [PATCH 4/6] trace: fix compile errors
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Thu Jul 12 02:51:38 CEST 2012
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/trace/trace.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/sheep/trace/trace.c b/sheep/trace/trace.c
index 3959bc7..e848d84 100644
--- a/sheep/trace/trace.c
+++ b/sheep/trace/trace.c
@@ -16,6 +16,7 @@
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
+#include <stdbool.h>
#include "trace.h"
#include "logger.h"
@@ -178,12 +179,10 @@ notrace int register_trace_function(trace_func_t func)
static notrace void suspend_worker_threads(void)
{
struct worker_info *wi;
- int i;
trace_count = total_nr_workers;
list_for_each_entry(wi, &worker_info_list, worker_info_siblings) {
- for (i = 0; i < wi->nr_threads; i++)
- if (pthread_kill(wi->worker_thread[i], SIGUSR2) != 0)
- dprintf("%m\n");
+ if (pthread_kill(wi->worker_thread, SIGUSR2) != 0)
+ dprintf("%m\n");
}
wait_for_worker_suspend:
pthread_mutex_lock(&trace_mux);
--
1.7.2.5
More information about the sheepdog
mailing list