diff options
Diffstat (limited to 'tools/virtual.c')
-rw-r--r-- | tools/virtual.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index ec83701d..0a66725e 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -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: |