Daniel-Constantin Mierla writes:
I am just thinking of making the connection inactive, via a flag in shared memory, so the other processes will ignore it as well. Then, if the connection is active more than N seconds, try to use it again, and if fails, keep it inactive.
as i mentioned earlier, this solution would be fine with me. i just went on and implemented a simple solution for serial connections in case you don't have time to work on a more general fix.
-- juha