[PATCH STABLE] test-push-http: do not clear pid file

Matt Harbison mharbison72 at gmail.com
Sat Apr 28 00:42:16 EDT 2018


On Fri, 27 Apr 2018 22:39:32 -0400, Yuya Nishihara <yuya at tcha.org> wrote:

> On Fri, 27 Apr 2018 21:49:33 -0400, Matt Harbison wrote:
>> I also wonder, given the persistent nagging address in use failure on
>> Windows when relaunching `hg serve` in some tests, if we should just  
>> have
>> some way of sending an exit command over the socket, so that it can
>> shutdown gracefully.  Obviously, it would have to be a test extension.
>
> I can upstream the win32ill extension, which makes hg listen to WM_CLOSE,
> but I have no idea if it works well with the win32.setsignalhandler()  
> hack.
>
> https://bitbucket.org/tortoisehg/thg/src/tip/tortoisehg/util/win32ill.py

I'll try playing with it this weekend.  Maybe it can be used somehow to  
get showstack.py to work on Windows too?

I see the caveat about processes that communicate via stdio... does that  
mean the ssh stuff will have an issue?  (I have no idea how that works,  
but when I was debugging the infinite push stuff, it really screwed things  
up using print() instead of ui.status().)


More information about the Mercurial-devel mailing list