Subj : Re: pthreads: cancelling thread blocked on berkeley socket accept() To : comp.programming.threads From : Missaka Wijekoon Date : Tue Sep 20 2005 09:01 pm You could poll() the socket with a timeout before calling accept. If you get a POLLIN event, then accept(). If you get a timeout on the poll, check the shutdown flag and if set, gracefully exit. -Misk Luke Dalessandro wrote: > shutdown() it is... thanks guys, you've been a great help. > > Luke .