c - UDP -- Socket - bind error - Address already in use? -
i see address in use on bind() while system starting up. when reload system plenty of times, see once in while 1 out of 100, see following error: bind failed.error: address in use. on every reboot of system - closing socket using close(gtx.i4txsockid) . here code, not sure on how can debug this. i have added netstat -ap find out problem it. on success, see: netstat: /proc/net/tcp6: no such file or directory udp 0 0 0.0.0.0:syslog 0.0.0.0:* 1562/syslog-ng udp 0 0 0.0.0.0:49155 0.0.0.0:* 1817/app.exe on failure, see: netstat: /proc/net/tcp6: no such file or directory udp 0 0 0.0.0.0:45825 0.0.0.0:* 1816/app.exe udp 0 0 0.0.0.0:syslog 0.0.0.0:* 1562/syslog-ng udp 0 0 localhost:49155 0.0.0.0:* 1816/app.exe i have added following