c - Is there a way to send a signal to all threads opening a fd? -


i close socket before notify threads blocking on accept/connect, therefore sending user specific signal, not knowing tid of signal receiving threads. cannot use syscall kill(pid, signal)

why not shutdown socket without notifying? each thread blocked on accept or read socket return corresponding error can parse take necessary actions


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -