Skip to contentSkip to conversation

master - dmeventd: drop stack

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=3d5f7f90c882e0f7bfa8cafb87ce3db4ea91e4a0
Commit:        3d5f7f90c882e0f7bfa8cafb87ce3db4ea91e4a0
Parent:        9da07f1d3ef40c982d463a97cf6aaf65f813ebc8
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jun 15 14:38:44 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jun 15 14:46:44 2015 +0200

dmeventd: drop stack

---
 daemons/dmeventd/dmeventd.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
daemons/dmeventd/dmeventd.c +2 -4
index d452f84..9fb3af7 100644
@@ -1671,10 +1671,8 @@ static void _cleanup_unused_threads(void)
 				if (ret == ESRCH) {
 					thread->status = DM_THREAD_DONE;
 				} else if (ret) {
-					syslog(LOG_ERR,
-					       "Unable to terminate thread: %s\n",
-					       strerror(-ret));
-					stack;
+					syslog(LOG_ERR, "Unable to terminate thread: %s",
+					       strerror(ret));
 				}
 				break;
 			}