linux - which signal should I use to come out of accept() API? -


i have 2 threads 1 blocked new connection in accept(), , 1 talks other processes. when application going shutdown, needs wake first thread accept(). have tried read man page of accept() did not find thing use full. question signal should send second thread first thread come out of accept , won't killed??

thanks.

you can use select timeout, example thread executing accept wakes every 1 or 2 seconds if nothing occurs , checks shutdown. can check this page have idea.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -