>As part of the shutdown, we are terminating all the processes using SIGKILL. 
>We are expecting the tipc sockets to be closed
>automatically by the kernel after some time.
>
>But sometimes ‘tipc socket list’ is still showing a few sockets as alive.
>
>Now when we restart the application, the system has two sockets with the same 
>tipc address.
>
Did your check Gary Duzan's comment ?
"   If the program is forking off processes, perhaps the child processes aren't 
closing the socket file descriptor. Using fcntl() to set FD_CLOEXEC on the 
descriptor in the parent may help."

Another thing is you need to make sure that your processes are actually killed 
(not hung or become zombie).
>
>Isn't the tipc sockets should have been closed automatically by the kernel 
>once the application is killed ?
>
They are closed if application is actually killed.


_______________________________________________
tipc-discussion mailing list
tipc-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to