From fcfd52df10c176dbc930c63011bfe8a48a0347dd Mon Sep 17 00:00:00 2001 From: Jakub Sitnicki Date: Sun, 11 Jan 2015 15:07:23 +0100 Subject: 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. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a5ff6644..47fa6135 100644 --- a/src/main.c +++ b/src/main.c @@ -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; } -- cgit v1.2.3-70-g09d2