|
|
@ -207,6 +207,7 @@ launch_client(struct nested *nested, const char *path) |
|
|
|
fprintf(stderr, "launch_client: " |
|
|
|
fprintf(stderr, "launch_client: " |
|
|
|
"socketpair failed while launching '%s': %m\n", |
|
|
|
"socketpair failed while launching '%s': %m\n", |
|
|
|
path); |
|
|
|
path); |
|
|
|
|
|
|
|
free(client); |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -214,6 +215,7 @@ launch_client(struct nested *nested, const char *path) |
|
|
|
if (pid == -1) { |
|
|
|
if (pid == -1) { |
|
|
|
close(sv[0]); |
|
|
|
close(sv[0]); |
|
|
|
close(sv[1]); |
|
|
|
close(sv[1]); |
|
|
|
|
|
|
|
free(client); |
|
|
|
fprintf(stderr, "launch_client: " |
|
|
|
fprintf(stderr, "launch_client: " |
|
|
|
"fork failed while launching '%s': %m\n", path); |
|
|
|
"fork failed while launching '%s': %m\n", path); |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
@ -246,6 +248,7 @@ launch_client(struct nested *nested, const char *path) |
|
|
|
client->client = wl_client_create(nested->child_display, sv[0]); |
|
|
|
client->client = wl_client_create(nested->child_display, sv[0]); |
|
|
|
if (!client->client) { |
|
|
|
if (!client->client) { |
|
|
|
close(sv[0]); |
|
|
|
close(sv[0]); |
|
|
|
|
|
|
|
free(client); |
|
|
|
fprintf(stderr, "launch_client: " |
|
|
|
fprintf(stderr, "launch_client: " |
|
|
|
"wl_client_create failed while launching '%s'.\n", |
|
|
|
"wl_client_create failed while launching '%s'.\n", |
|
|
|
path); |
|
|
|
path); |
|
|
|