Am 13.06.2013, 22:47 Uhr, schrieb Alan Bateman <alan.bate...@oracle.com>:
Yes, it looks like close is missing in a few places (but probably hasn't been noticed as it's unlikely that the setsockopt will fail).
Linux Kernel is using in those situations an error-out label. if () { Throw... goto error; } ... error: close(fd); return; Greetings Bernd -- http://bernd.eckenfels.net