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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -