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.
This commit is contained in:
parent
a13f906ed1
commit
a86368dcb1
@ -445,14 +445,14 @@ meta_xwayland_start (MetaXWaylandManager *manager,
|
|||||||
{
|
{
|
||||||
g_warning ("xwayland_client_fd socketpair failed\n");
|
g_warning ("xwayland_client_fd socketpair failed\n");
|
||||||
unlink (manager->lockfile);
|
unlink (manager->lockfile);
|
||||||
return 1;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (socketpair (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, displayfd) < 0)
|
if (socketpair (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, displayfd) < 0)
|
||||||
{
|
{
|
||||||
g_warning ("displayfd socketpair failed\n");
|
g_warning ("displayfd socketpair failed\n");
|
||||||
unlink (manager->lockfile);
|
unlink (manager->lockfile);
|
||||||
return 1;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
manager->pid = fork ();
|
manager->pid = fork ();
|
||||||
|
Loading…
Reference in New Issue
Block a user