logind: actually close fd in launcher_logind_close
We still need to close fds passed to us - or we leak quite a few fds on VC switch. Regression, originally fixed in8f5acc2f3a
and re-broken in commit72dea06d79
but only for the logind launcher. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
c623902eca
commit
f981d69553
@ -216,6 +216,7 @@ launcher_logind_close(struct weston_launcher *launcher, int fd)
|
||||
int r;
|
||||
|
||||
r = fstat(fd, &st);
|
||||
close(fd);
|
||||
if (r < 0) {
|
||||
weston_log("logind: cannot fstat fd: %m\n");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user