diff options
author | Jakub Sitnicki <jsitnicki@gmail.com> | 2015-01-11 15:07:23 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-01-11 19:32:49 +0100 |
commit | fcfd52df10c176dbc930c63011bfe8a48a0347dd (patch) | |
tree | 15e410e35c6b3e253342e33bc62d169f8b3044e0 /src/main.c | |
parent | 7552030ef90004857b4535f835e19fe734b22a39 (diff) |
core: perform clean-up when terminating due to a Unix signal
Since commit 2d700043abc5 ("core: use g_unix_signal_add() for more
reliable Unix signal handling") we no longer have to stick to
signal-safe functions in the SIGTERM/SIGINT handler.
Use exit() to terminate so that the clean-up functions are ran and code
coverage data gets written into files.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ quit_cb (gpointer user_data) if (loop) g_idle_add ((GSourceFunc) g_main_loop_quit, loop); else - _exit (0); + exit (0); return FALSE; } |