Skip to contentSkip to conversation

master - dmeventd: move code from signal handler

PATCH Zdenek Kabelac 1 participant 1 message Jul 1, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fd399d52a920b2b2974e53f2f36524fa7431033f
Commit:        fd399d52a920b2b2974e53f2f36524fa7431033f
Parent:        0ca168813437375d8dc96326b0d74f97f3866b5e
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Jun 30 15:53:42 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 1 23:06:11 2013 +0200

dmeventd: move code from signal handler

Instead of calling syslog() from signal event handler, run all logging code in the main loop.

Also it needs to take the lock and check for list
only when really needed.

---
 WHATS_NEW_DM                |    1 +
 daemons/dmeventd/dmeventd.c |   41 +++++++++++++++++++----------------------
 2 files changed, 20 insertions(+), 22 deletions(-)
WHATS_NEW_DM +1 -0
index c4bdcbf..4819a0b 100644
@@ -1,5 +1,6 @@
 Version 1.02.78 - 
 ===================================
+  Move syslog code out of signal handle in dmeventd.
   Add DM_TO_STRING public macro.
   Always return success on dmeventd -V command call.
   Fix parsing of 64bit snapshot status in dmeventd snapshot plugin.
daemons/dmeventd/dmeventd.c +19 -22

67 lines not on this page · raw message