[Twisted-Python] git clone with spawnProcess() can prevent socket data flow, any clue why?

Martin Nordholts enselic at gmail.com
Sat Aug 28 13:15:10 EDT 2010


On 08/28/2010 06:54 PM, Petr Mifek wrote:
> Yes, here when git does connect but receives nothing, it doesn't make
> the directory. So your the sample script hangs at you with only
>
> ::connectionMade
>
> in output? Does suppressing the git's output to stderr help? (a -q
> modifier to git clone)?

No I get more output than that, I get:


martin at ltop:~/source/temp$ ./git-clone-gimp.py
childFDs {0: 'w', 1: 'r', 2: 'r'}
[0] w
readFD=7, writeFD=8
[1] r
readFD=9, writeFD=10
[2] r
readFD=11, writeFD=14
fdmap {0: 7, 1: 10, 2: 14}
helpers {0: 8, 1: 9, 2: 11}
::connectionMade
starting _setupChild
fdmap {0: 7, 1: 10, 2: 14}
os.dup2(7,0)
os.dup2(10,1)
os.dup2(14,2)
::errReceived
old [7, 10, 14]

::outReceived
Cloning into gimp...


A -q argument did, as expected, not help.

  / Martin



More information about the Twisted-Python mailing list