[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Script for starting private Tor networks
- To: or-talk@xxxxxxxxxxxxx
- Subject: Re: Script for starting private Tor networks
- From: Adam Langley <agl@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Sep 2005 18:10:07 +0100
- Delivered-to: archiver@seul.org
- Delivered-to: or-talk-outgoing@seul.org
- Delivered-to: or-talk@seul.org
- Delivery-date: Fri, 02 Sep 2005 13:11:05 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RS7lyy0QjvOV7XWvshGYurLflr+AMzSS0EPKlsoOj1TZ47GbTIbtyMN/lFTD44mh2kbn31vgEUV3bDUDMhmgnmAM0Hl0fJczvUrIkAQQUtAqChQBcQGTXZUk+W307ku1wWS/KCMdU6zunYt6ikJb2zHEtRMFcgIAEIOG8zzvk5c=
- In-reply-to: <431879C7.4000402@walala.org>
- References: <396556a20508310615625d08d0@mail.gmail.com> <43167A32.2090808@walala.org> <396556a205090108281ee7f96@mail.gmail.com> <431879C7.4000402@walala.org>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
On 9/2/05, ADB <firefox-gen@xxxxxxxxxx> wrote:
> I tested it in win32, and it doesn't really work. Some system calls differ.
> Here's the output:
> Settings\bushwacker\Desktop\test\make-private-tor-network.py",
> line 28, in tor_get_version
> output = run(binary, "tor", "--version")
> File "C:\Documents and
> Settings\bushwacker\Desktop\test\make-private-tor-network.py",
> line 14, in run
> process = subprocess.Popen(args, executable = binary, stdout =
> subprocess.PIPE, stderr = None, stdin = None)
> File "C:\Python24\lib\subprocess.py", line 549, in
> __init__
> (p2cread, p2cwrite,
> File "C:\Python24\lib\subprocess.py", line 609, in
> _get_handles
> p2cread = self._make_inheritable(p2cread)
> File "C:\Python24\lib\subprocess.py", line 650, in
> _make_inheritable
> DUPLICATE_SAME_ACCESS)
> TypeError: an integer is required
Looks like a bug in the subprocess module shipped with Python 2.4. The
faulting line of code is in a big "if mswindows:" block, and is
passing the wrong type of argument to a win32 call.
AGL
--
Adam Langley agl@xxxxxxxxxxxxxxxxxx
http://www.imperialviolet.org (+44) (0)7906 332512
PGP: 9113 256A CC0F 71A6 4C84 5087 CDA5 52DF 2CB6 3D60