[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] fix non interruptable hang in svn client when connecting

From: Michael Sweet <mike_at_easysw.com>
Date: 2005-08-25 19:36:37 CEST

Malcolm Rowe wrote:
> On Thu, Aug 25, 2005 at 05:39:01PM +0200, Yun Zheng Hu wrote:
>
>>If we dont set a timeout, the apr_connect function will use a blocking
>>socket connect but does not timeout if the user sent an interrupt (the
>>bug).
>>If we do set a timeout it will be a nonblocking connect, and resort to
>>apr_poll for proper timeout (see apr/network_io/unix/sockets.c).
>
>
> It sounds as though you're saying that the Mac OS X (blocking) version of
> connect() will hang the process and make it unkillable if you send it a
> SIGINT while it's waiting for a connection to complete.
>
> That seems pretty weird to me - is that really what's happening? (although
> I must admit that I don't understand how the process could block SIGKILL
> anyway).

A process can't block SIGKILL, however if the process is waiting on
a system call, the SIGKILL will not be delivered until the process
goes back to user space...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 25 19:37:19 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.