Add support for SIGHUP handling in Haskell daemons
authorIustin Pop <iustin@google.com>
Fri, 25 May 2012 16:00:56 +0000 (18:00 +0200)
committerIustin Pop <iustin@google.com>
Tue, 29 May 2012 09:09:32 +0000 (11:09 +0200)
commit36691f08c2ba880fbd4c19c62ef0b45c14995ee8
treec10055c630350593ca7cc5c4b586628637cf763b
parent0c28bee1358ba512275d6608eed9680d87f7b68c
Add support for SIGHUP handling in Haskell daemons

This patch adds support for handling SIGHUP and reopening the
stdout/stderr logfile in daemon mode (but not in foreground mode).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htools/Ganeti/Daemon.hs