Add SIGUSR1 as another signal for schema reloading
This commit is contained in:
committed by
Steve Chávez
parent
2066220244
commit
d7511a2637
@@ -27,6 +27,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- #1128, Allow finishing a json path with a single arrow `->`. Now a json can be obtained without resorting to casting, Previously: `/json_arr?select=data->>2::json`, now: `/json_arr?select=data->2` - @steve-chavez
|
- #1128, Allow finishing a json path with a single arrow `->`. Now a json can be obtained without resorting to casting, Previously: `/json_arr?select=data->>2::json`, now: `/json_arr?select=data->2` - @steve-chavez
|
||||||
- #724, Change server-host default of *4 to 127.0.0.1
|
- #724, Change server-host default of *4 to 127.0.0.1
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
- #724, SIGHUP deprecated, SIGUSR1 should be used instead
|
||||||
|
|
||||||
## [0.5.0.0] - 2018-05-14
|
## [0.5.0.0] - 2018-05-14
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+10
-9
@@ -202,15 +202,16 @@ main = do
|
|||||||
throwTo mainTid UserInterrupt
|
throwTo mainTid UserInterrupt
|
||||||
) Nothing
|
) Nothing
|
||||||
|
|
||||||
void $ installHandler sigHUP (
|
forM_ [sigHUP, sigUSR1] $ \sig ->
|
||||||
Catch $ connectionWorker
|
void $ installHandler sig (
|
||||||
mainTid
|
Catch $ connectionWorker
|
||||||
pool
|
mainTid
|
||||||
(configSchema conf)
|
pool
|
||||||
(configSettings conf)
|
(configSchema conf)
|
||||||
refDbStructure
|
(configSettings conf)
|
||||||
refIsWorkerOn
|
refDbStructure
|
||||||
) Nothing
|
refIsWorkerOn
|
||||||
|
) Nothing
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user