From 2ea1c2b68c46b8315790900291b18eb6f04010f9 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Mon, 6 Sep 2010 03:28:06 +0000 Subject: Deadlock in state dumping while holding the logging lock Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 976 (Deadlock in state dumping while holding the logging lock) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=976 --- glusterfsd/src/glusterfsd.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index bd2d704b800..0fd739cb421 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1153,15 +1153,9 @@ glusterfs_sigwaiter (void *arg) for (;;) { ret = sigwait (&set, &sig); - if (ret) { - gf_log ("sigwaiter", GF_LOG_ERROR, - "sigwait returned error (%s)", - strerror (ret)); + if (ret) continue; - } - - gf_log ("sigwaiter", GF_LOG_DEBUG, - "received signal %d", sig); + switch (sig) { case SIGINT: @@ -1178,8 +1172,7 @@ glusterfs_sigwaiter (void *arg) gf_latency_toggle (sig); break; default: - gf_log ("sigwaiter", GF_LOG_ERROR, - "unhandled signal: %d", sig); + break; } } -- cgit