From: Francis Cianfrocca Date: 2007-12-12T02:53:41+09:00 Subject: Re: Issue with threads and socket accept ------=_Part_17626_29414639.1197395626118 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 11, 2007 11:18 AM, Vasyl Smirnov wrote: > Hi, > > I'm writing a multi-threaded server, and would like to stop it on a > signal (SIGINT on Ctrl-C in this case). > The problem is that after the first connection is accepted, and then > Ctrl-C is hit, the "while accept" loop doesn't break. If you hit Ctrl- > C before any connections, it just works fine. And the single-threaded > version, of course, works > as well. > > Could somebody explain what am I doing wrong? > Without addressing your specific question, let me suggest that you investigate the Ruby/Eventmachine library. It should make your application easier to develop. ------=_Part_17626_29414639.1197395626118--