[PATCH 3 of 3] killdaemons: read pids from file arguments if any

Patrick Mézard patrick at mezard.eu
Mon Aug 20 13:57:29 CDT 2012


Le 20/08/12 13:01, Mads Kiilerich a écrit :
> On 20/08/12 08:38, Patrick Mézard wrote:
>> Le 20/08/12 00:39, Mads Kiilerich a écrit :
>>> Patrick Mezard wrote, On 08/19/2012 09:22 PM:
>>>> On Windows, MinGW kill implementation does not seem to use system
>>>> process identifiers, and systematically fails when called in tests.
>>>> killdaemons.py could be a suitable replacement.
>>>>
> 
>>
>>>> - Convert all kill utility calls to killdaemons.py calls
>>>> - Add a rule in check-code.py to forbid kill calls
>>> 'kill' is in some places used to kill sub processes where the pid come from $!. Shouldn't 'kill' still be used in these cases?
>> It would be replaced with:
>>
>>    $ echo $! > stuff.pid
>>    $ killdaemons.py stuff.pid
> 
> Do $! and kill use different kinds of 'system process identifiers' ... and do $! and killdaemons use the same kind?

Good question. It may be possible to translate mingw pid to system ones with the ps command. test-hup.t is more problematic, we can hardly replace the kill call.

Keeping these ones and teaching check-code.py to ignore specific lines may be easier.

> 
>> I can grep only one instance of this in test-static.http.t.
> 
> There is also test-hup.t and test-convert-p4*.t

--
Patrick Mézard



More information about the Mercurial-devel mailing list