[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Return 1 on lock command failure (bug #15945)
noreply at xfce.org
noreply at xfce.org
Wed Jan 15 12:36:31 CET 2020
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit 93a49f7d15d2262fe65c58397085711ccb33df69
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Jan 15 06:36:24 2020 -0500
Return 1 on lock command failure (bug #15945)
---
src/xfce4-screensaver-command.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/xfce4-screensaver-command.c b/src/xfce4-screensaver-command.c
index 585e86a..5032522 100644
--- a/src/xfce4-screensaver-command.c
+++ b/src/xfce4-screensaver-command.c
@@ -103,6 +103,7 @@ static GOptionEntry entries[] = {
};
static GMainLoop *loop = NULL;
+int return_code = 0;
static GDBusMessage *
screensaver_send_message (GDBusConnection *conn,
@@ -180,6 +181,7 @@ do_command (GDBusConnection *conn) {
if (!screensaver_is_running (conn)) {
g_message ("Screensaver is not running! Start xfce4-screensaver first");
+ return_code = 1;
goto done;
}
@@ -325,5 +327,5 @@ main (int argc,
loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (loop);
g_object_unref (conn);
- return 0;
+ exit (return_code);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list