Add SIGUSR1 as another signal for schema reloading
This commit is contained in:
committed by
Steve Chávez
parent
2066220244
commit
d7511a2637
+10
-9
@@ -202,15 +202,16 @@ main = do
|
||||
throwTo mainTid UserInterrupt
|
||||
) Nothing
|
||||
|
||||
void $ installHandler sigHUP (
|
||||
Catch $ connectionWorker
|
||||
mainTid
|
||||
pool
|
||||
(configSchema conf)
|
||||
(configSettings conf)
|
||||
refDbStructure
|
||||
refIsWorkerOn
|
||||
) Nothing
|
||||
forM_ [sigHUP, sigUSR1] $ \sig ->
|
||||
void $ installHandler sig (
|
||||
Catch $ connectionWorker
|
||||
mainTid
|
||||
pool
|
||||
(configSchema conf)
|
||||
(configSettings conf)
|
||||
refDbStructure
|
||||
refIsWorkerOn
|
||||
) Nothing
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user