Skip to contentSkip to conversation

master - dmeventd: drop pthread_cancel

PATCH Zdenek Kabelac 1 participant 1 message Jun 15, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9da07f1d3ef40c982d463a97cf6aaf65f813ebc8
Commit:        9da07f1d3ef40c982d463a97cf6aaf65f813ebc8
Parent:        f715fefe314288a3200d60afd71991e86f3a098f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jun 15 14:39:17 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jun 15 14:46:44 2015 +0200

dmeventd: drop pthread_cancel

Drop unused pthread canceling as well as DEBUG printing in signal handler.

---
 daemons/dmeventd/dmeventd.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
daemons/dmeventd/dmeventd.c +1 -2
index ad27060..d452f84 100644
@@ -1706,8 +1706,7 @@ static void _cleanup_unused_threads(void)
 
 static void _sig_alarm(int signum __attribute__((unused)))
 {
-	DEBUGLOG("Received SIGALRM.");
-	pthread_testcancel();
+	/* empty SIG_IGN */;
 }
 
 /* Init thread signal handling. */