summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-02-12 23:46:18 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-02-12 23:46:18 +0100
commitb823b7d4481612b7047d7ad87911218893a2297b (patch)
tree24f8feb75df6ffa39f79fe808e09ed711469fcbf /src
parent023126868e8d16d64a4c721282cef2757546007e (diff)
main: unload modules on forced exit
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d55b349..dff18c9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,8 +21,10 @@ static void signal_handler(int sig)
{
static bool term = false;
- if (term)
+ if (term) {
+ mod_close();
exit(0);
+ }
term = true;