diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-19 19:50:48 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-19 19:50:48 +0100 |
commit | 6e3bb506de081362d71dc097273fbe954f651056 (patch) | |
tree | e38dd0ba4a0b95eb850e3a4decb1c7f9302f0153 /source/helper.c | |
parent | 4eb3fd1da33e91ad76efe1508702de50daf0df34 (diff) |
Full mainloop madness
Diffstat (limited to 'source/helper.c')
-rw-r--r-- | source/helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c index 96eb92e2..b19caf6b 100644 --- a/source/helper.c +++ b/source/helper.c @@ -508,7 +508,7 @@ void remove_pid_file ( int fd ) * * This functions exits the program with 1 when it finds an invalid configuration. */ -void config_sanity_check ( Display *display ) +int config_sanity_check ( Display *display ) { if ( config.threads == 0 ) { config.threads = 1; @@ -591,10 +591,11 @@ void config_sanity_check ( Display *display ) if ( found_error ) { g_string_append ( msg, "Please update your configuration." ); show_error_message ( msg->str, TRUE ); - exit ( EXIT_FAILURE ); + return TRUE; } g_string_free ( msg, TRUE ); + return FALSE; } char *rofi_expand_path ( const char *input ) |