Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
lvm2.631
0001-clvmd-avoid-logging-in-signal-handler.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-clvmd-avoid-logging-in-signal-handler.patch of Package lvm2.631
From 5070ffbca7b16e4139b3da72bdff0c9add517351 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac <zkabelac@redhat.com> Date: Wed, 17 Apr 2013 23:16:30 +0200 Subject: [PATCH] clvmd: avoid logging in signal handler Git-repo: https://git.fedorahosted.org/git/lvm2.git Git-commit: 5070ffbca7b16e4139b3da72bdff0c9add517351 debuglog in the main thread. --- daemons/clvmd/clvmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index c649bbe..a64bd54 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -874,6 +874,7 @@ static void main_loop(int local_sock, int cmd_timeout) int saved_errno = errno; reread_config = 0; + DEBUGLOG("got SIGHUP\n"); if (clops->reread_config) clops->reread_config(); errno = saved_errno; @@ -982,6 +983,8 @@ static void main_loop(int local_sock, int cmd_timeout) closedown: clops->cluster_closedown(); + if (quit) + DEBUGLOG("SIGTERM received\n"); } static __attribute__ ((noreturn)) void wait_for_child(int c_pipe, int timeout) @@ -2253,14 +2256,12 @@ static void sigusr2_handler(int sig) static void sigterm_handler(int sig) { - DEBUGLOG("SIGTERM received\n"); quit = 1; return; } static void sighup_handler(int sig) { - DEBUGLOG("got SIGHUP\n"); reread_config = 1; } -- 1.8.4.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor