A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-April/072447.html below:

[Python-Dev] About SSL tests

[Python-Dev] About SSL testsJosiah Carlson jcarlson at uci.edu
Tue Apr 3 04:33:57 CEST 2007
Facundo Batista <facundo at taniquetil.com.ar> wrote:
> Jean-Paul Calderone wrote:
> > If the openssl binary is available, when the test starts, launch it in
> > a child process, talk to it for the test, then kill it when the test is
> > done.
> 
> Ok, I have a demo of this.
> 
> Right now, I face this problem.
> 
> I launch openssl through subprocess, but I do *not* find a way to tell
> him to quit serving, so all I can do is to kill the process (through the
> pid from the Popen object).
> 
> The problem is that os.kill only works in Unix and Macintosh. So,
> there's a better way to do this? Or I shall check if I'm in one of those
> both platforms and only execute the tests there?

If you have a compilation of pywin32 (isn't it shipped by default in
Python 2.5+?), you can kill the process with
win32process.TerminateProcess() .


 - Josiah

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4