intel-virtual-overlay: Keep bumblebeed awake

bumbledeed will shutdown its Xserver when the last connection to it
closes. For the moment, leak the control socket so that the display
stays alive. However, we will want to attach to any Xservers created by
bumblebee as opposed to creating them.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-02 22:07:46 +01:00
parent c8dc27e00e
commit 7c5d269f25
1 changed files with 7 additions and 1 deletions

View File

@ -1686,7 +1686,6 @@ static int bumblebee_open(struct context *ctx)
goto err;
}
buf[len] = '\0';
close(fd);
DBG(("%s query result '%s'\n", __func__, buf));
@ -1698,6 +1697,13 @@ static int bumblebee_open(struct context *ctx)
len++;
buf[len] = '\0';
/* XXX We must keep the control socket open whilst we want to keep
* the display around.
*
* So what we need to do is listen for new bumblee Xservers and
* bind only for their duration.
*/
return display_open(ctx, buf+7);
err: