1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-09 05:46:32 +00:00

Fixed FD leak of RECVFROM with fork

This commit is contained in:
Gerhard Rieger 2023-12-08 16:25:07 +01:00
parent ab2b17dfc5
commit 4c0786dcdf
3 changed files with 93 additions and 0 deletions

View file

@ -1362,6 +1362,7 @@ int _xioopen_dgram_recvfrom(struct single *sfd, int xioflags,
char buf[1];
while (Read(trigger[0], buf, 1) < 0 && errno == EINTR) ;
}
Close(trigger[0]);
Info("continue listening");
} else {