In my mulithreaded C application, one of task got crashed while holding a mutex lock. This is now causing problem for other threads to execute with access to same semphores.
I know in linux we have robust mutex to deal with it, but using this will require lots of changes in application(not possible). So can anybody tell me a way to unlock the mutex or solve the problem.
As a solution I am thinking of deleting the locked mutex and recreating it for rest of the thread to use. I am not sure how safe is to implement this change.

Thanks.