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:
parent
ab2b17dfc5
commit
4c0786dcdf
3 changed files with 93 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue