Add two new values for the destroy-unattached option to destroy sessions

only if they are not members of sessions groups, from Mark Huang, GitHub
issue 3806.
This commit is contained in:
nicm
2024-02-13 08:10:23 +00:00
parent 4bdb855020
commit 40b97b1715
4 changed files with 39 additions and 9 deletions

2
proc.c
View File

@ -92,7 +92,7 @@ proc_event_cb(__unused int fd, short events, void *arg)
log_debug("peer %p message %d", peer, imsg.hdr.type);
if (peer_check_version(peer, &imsg) != 0) {
int fd = imsg_get_fd(&imsg);
fd = imsg_get_fd(&imsg);
if (fd != -1)
close(fd);
imsg_free(&imsg);