xwayland: Detect a fail to fork

This commit is contained in:
Jasper St. Pierre 2014-04-02 13:03:17 -04:00
parent 8373c90cd8
commit c4c0b5f0ab

View File

@ -402,6 +402,10 @@ meta_xwayland_start (MetaXWaylandManager *manager,
exit (EXIT_FAILURE);
}
}
else if (manager->pid == -1)
{
g_error ("Failed to fork: %m");
}
g_child_watch_add (manager->pid, xserver_died, NULL);
manager->client = wl_client_create (wl_display, sp[0]);