[mutter] xwayland: Prevent some boolean confusion
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] xwayland: Prevent some boolean confusion
- Date: Fri, 27 Mar 2015 20:59:03 +0000 (UTC)
commit a86368dcb16b8a1cd38a11826ed62828adcda508
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Mar 21 18:25:02 2015 -0700
xwayland: Prevent some boolean confusion
The original code in Weston that this was ported from returned an errno,
not a boolean, so we were inadvertently returning TRUE here during an
error path. Fix that up.
src/wayland/meta-xwayland.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index 468b31b..95786bb 100644
--- a/src/wayland/meta-xwayland.c
+++ b/src/wayland/meta-xwayland.c
@@ -445,14 +445,14 @@ meta_xwayland_start (MetaXWaylandManager *manager,
{
g_warning ("xwayland_client_fd socketpair failed\n");
unlink (manager->lockfile);
- return 1;
+ return FALSE;
}
if (socketpair (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, displayfd) < 0)
{
g_warning ("displayfd socketpair failed\n");
unlink (manager->lockfile);
- return 1;
+ return FALSE;
}
manager->pid = fork ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]