Mutex protects client list but does not prevent socket closure in multithreaded C server [closed]
I am implementing a multithreaded C server where clients are stored in a linked list of structs. Each struct contains, among other fields, the socket (sk) for communicating with the client. The...