aboutsummaryrefslogtreecommitdiff
path: root/libseat
diff options
context:
space:
mode:
Diffstat (limited to 'libseat')
-rw-r--r--libseat/backend/seatd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c
index 6e90713..f55efe6 100644
--- a/libseat/backend/seatd.c
+++ b/libseat/backend/seatd.c
@@ -634,6 +634,7 @@ static struct libseat *builtin_open_seat(const struct libseat_seat_listener *lis
close(fds[1]);
return NULL;
} else if (pid == 0) {
+ close(fds[1]);
int fd = fds[0];
int res = 0;
struct server server = {0};
@@ -662,6 +663,7 @@ static struct libseat *builtin_open_seat(const struct libseat_seat_listener *lis
close(fd);
exit(res);
} else {
+ close(fds[0]);
int fd = fds[1];
return _open_seat(listener, data, fd);
}