[gnome-terminal] server: Use distinct exit code for gtk_init failure
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] server: Use distinct exit code for gtk_init failure
- Date: Mon, 12 Oct 2015 16:32:05 +0000 (UTC)
commit aff64cc127cc1e242b852a90ec3cb5e08231f67f
Author: Christian Persch <chpe gnome org>
Date: Mon Oct 12 11:10:58 2015 +0200
server: Use distinct exit code for gtk_init failure
(cherry picked from commit 314794ee63d831a9c0c3a34227c939003522e41b)
src/server.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/server.c b/src/server.c
index af2706d..780d82e 100644
--- a/src/server.c
+++ b/src/server.c
@@ -103,7 +103,8 @@ increase_rlimit_nofile (void)
enum {
_EXIT_FAILURE_WRONG_ID = 7,
_EXIT_FAILURE_NO_UTF8 = 8,
- _EXIT_FAILURE_UNSUPPORTED_LOCALE = 9
+ _EXIT_FAILURE_UNSUPPORTED_LOCALE = 9,
+ _EXIT_FAILURE_GTK_INIT = 10
};
int
@@ -169,7 +170,7 @@ main (int argc, char **argv)
if (!gtk_init_with_args (&argc, &argv, NULL, options, NULL, &error)) {
g_printerr ("Failed to parse arguments: %s\n", error->message);
g_error_free (error);
- exit (EXIT_FAILURE);
+ exit (_EXIT_FAILURE_GTK_INIT);
}
if (!increase_rlimit_nofile ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]