cmdline: handle fatal errors with GError

Don't call g_error(), which will abort the process and dump core.
This commit is contained in:
Max Kellermann
2009-09-24 21:40:05 +02:00
parent 308b3f2337
commit 1b227e0145
3 changed files with 30 additions and 5 deletions

View File

@@ -295,7 +295,12 @@ int main(int argc, char *argv[])
tag_pool_init();
config_global_init();
parse_cmdline(argc, argv, &options);
success = parse_cmdline(argc, argv, &options, &error);
if (!success) {
g_warning("%s", error->message);
g_error_free(error);
return EXIT_FAILURE;
}
glue_daemonize_init(&options);