Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/process.pyc


y@Nc@s1dZddlZddlZddlZddlZddlZddlZddlZddlZyddl	Z	Wne
k
reZ	nXyddlZddl
Z
Wne
k
reZnXddlmZddlmZmZddlmZddlmZmZmZddlmZmZddlmZdd	lmZej Z iZ!d
Z"dZ#dZ$d
Z%e%dej&fdYZ'dej&fdYZ(dee)fdYZ*de)fdYZ+e+Z,dZ-de*fdYZ.dej&e*fdYZ/dS(s
UNIX Process management.

Do NOT use this module directly - use reactor.spawnProcess() instead.

Maintainer: Itamar Shtull-Trauring
iN(t
implements(tlogtfailure(t	switchUID(tfdesctabstractterror(tCONNECTION_LOSTtCONNECTION_DONE(tBaseProcess(tIProcessTransportcCs%xtjD]}|jq
WdS(s(
    Reap all registered processes.
    N(treapProcessHandlerstvaluestreapProcess(tprocess((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytreapAllProcesses)scCs|tkrtdnytj|tj\}}Wn(tjd|tjd}nX|r{|j	|n
|t|<dS(s
    Register a process handler for the given pid, in case L{reapAllProcesses}
    is called.

    @param pid: the pid of the process.
    @param process: a process handler.
    s.Try to register an already registered process.sFailed to reap %d:N(
RtRuntimeErrortostwaitpidtWNOHANGRtmsgterrtNonetprocessEnded(tpidRtauxPIDtstatus((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytregisterReapProcessHandler1s

cCs6|tkot||ks+tdnt|=dS(sd
    Unregister a process handler previously registered with
    L{registerReapProcessHandler}.
    s+Try to unregister a process not registered.N(RR(RR((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytunregisterReapProcessHandlerHscCsytj\}}tj|dtj|gggd\}}}|rUtantatj|tj|dS(s
    On some Linux version, write-only pipe are detected as readable. This
    function is here to check if this bug is present or not.

    See L{ProcessWriter.doRead} for a more detailed explanation.
    taiN(RtpipetwritetselecttTruetbrokenLinuxPipeBehaviortFalsetclose(trtwtreadstwritestexes((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytdetectLinuxBrokenPipeBehaviorSs$	
t
ProcessWritercBsYeZdZdZdZeZedZdZdZ	dZ
dZdZRS(	s
    (Internal) Helper class to write into a Process's input pipe.

    I am a helper which describes a selectable asynchronous writer to a
    process's input pipe, including stdin.

    @ivar enableReadHack: A flag which determines how readability on this
        write descriptor will be handled.  If C{True}, then readability may
        indicate the reader for this write descriptor has been closed (ie,
        the connection has been lost).  If C{False}, then readability events
        are ignored.
    iicCstjj||tj|||_||_||_tj	t
j|jj
sht|_nI|rzt|_n7yt
j|jdWntk
rt|_nX|jr|jndS(sJ
        Initialize, specifying a Process instance to connect to.
        iN(RtFileDescriptort__init__RtsetNonBlockingtproctnametfdtstattS_ISFIFORtfstattfilenotst_modeR#tenableReadHackR!treadtOSErrortstartReading(tselftreactorR/R0R5t
forceReadHack((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR-{s
			!

	cCs|jS(s<
        Return the fileno() of my process's stdin.
        (R1(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR5scCsAtj|j|}|t|kr=|jr=|jn|S(s6
        Write some data to the open process.
        (Rt	writeToFDR1tlenR7R:(R;tdatatrv((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt
writeSomeDatas
cCs!|jtjj||dS(N(tstopReadingRR,R(R;R@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs
cCsg|jrYtrR|j}tj|g|ggd\}}}|rV|rVtSqctSn
|jdS(s}
        The only way a write pipe can become "readable" is at EOF, because the
        child has closed it, and we're using a reactor which doesn't
        distinguish between readable and closed (such as the select reactor).

        Except that's not true on linux < 2.6.11. It has the following
        characteristics: write pipe is completely empty => POLLOUT (writable in
        select), write pipe is not completely empty => POLLIN (readable in
        select), write pipe's reader closed => POLLIN|POLLERR (readable and
        writable in select)

        That's what this funky code is for. If linux was not broken, this
        function could be simply "return CONNECTION_LOST".

        BUG: We call select no matter what the reactor.
        If the reactor is pollreactor, and the fd is > 1024, this will fail.
        (only occurs on broken versions of linux, though).
        iN(R7R"R1R RRC(R;R1R%R&tx((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytdoReads		'cCs=tj|jtjj|||jj|j|dS(s=
        See abstract.FileDescriptor.connectionLost.
        N(	RtsetBlockingR1RR,tconnectionLostR/tchildConnectionLostR0(R;treason((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRGs(
t__name__t
__module__t__doc__t	connectedticR#R7R-R5RBRRERG(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR+js				t
ProcessReadercBsSeZdZdZdZdZdZdZdZdZ	dZ
RS(	sx
    ProcessReader

    I am a selectable representation of a process's output pipe, such as
    stdout and stderr.
    icCsItjj||tj|||_||_||_|jdS(sA
        Initialize, specifying a process to connect to.
        N(	RR,R-RR.R/R0R1R:(R;R<R/R0R5((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR-s
			cCs|jS(s=
        Return the fileno() of my process's stderr.
        (R1(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR5scCs|dksttS(Nt(tAssertionErrorR(R;R@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRBscCstj|j|jS(s@
        This is called when the pipe becomes readable.
        (Rt
readFromFDR1tdataReceived(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyREscCs|jj|j|dS(N(R/tchildDataReceivedR0(R;R@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRSscCsO|jrK|jrKd|_|j|jjd|jtjtndS(Nii(	RMt
disconnectingRCR<t	callLaterRGRtFailureR(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytloseConnections
	
cCs-tjj|||jj|j|dS(sk
        Close my end of the pipe, signal the Process (which signals the
        ProcessProtocol).
        N(RR,RGR/RHR0(R;RI((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRG
s(RJRKRLRMR-R5RBRERSRXRG(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyROs						t_BaseProcesscBsbeZdZd	Zd	ZdZdZdZdZ	dZ
dZdZdZ
RS(
s0
    Base class for Process and PTYProcess.
    cCsyZy"tj|jtj\}}Wn1tk
rX}|jtjkrRd}qYnXWn+tj	d|jtj
d}nX|r|j|t||ndS(s
        Try to reap a process (without blocking) via waitpid.

        This is called when sigchild is caught or a Process object loses its
        "connection" (stdout is closed) This ought to result in reaping all
        zombie processes, since it will be called twice as often as it needs
        to be.

        (Unfortunately, this is a slightly experimental approach, since
        UNIX has no way to be really sure that your process is going to
        go away w/o blocking.  I don't want to block.)
        sFailed to reap %d:N(
RRRRR9terrnotECHILDRRRRRR(R;RRte((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR
s
"	


cCsfd}}tj|r+tj|}ntj|}|sF|rYtj|||Stj|S(N(RRt	WIFEXITEDtWEXITSTATUStWTERMSIGRtProcessTerminatedtProcessDone(R;RtexitCodetsig((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt
_getReason<s
cCsW|dkr%ttd|f}n|jdkr@tntj|j|dS(	s*
        Send the given signal C{signalID} to the process. It'll translate a
        few signals ('HUP', 'STOP', 'INT', 'KILL', 'TERM') from a string
        representation to its int value, otherwise it'll pass directly the
        value provided

        @type signalID: C{str} or C{int}
        tHUPtSTOPtINTtKILLtTERMsSIG%sN(ReRfRgRhRi(tgetattrtsignalRRtProcessExitedAlreadyRtkill(R;tsignalID((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt
signalProcessGs
	cCsOxHtdtjD]4}tj|tjkrtj|tjqqWdS(Ni(trangeRktNSIGt	getsignaltSIG_IGNtSIG_DFL(R;t	signalnum((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt_resetSignalDispositionWsc	Ks>|d
k	p|d
k	}|rtj}	tj}
tj}tj}|d
krc|}n|d
krx|	}ntjdtjdntj	}
tj
ytj|_WnF|rtj
|
|	tj||n|
rtjnnX|jdkry=tjd
|j||j|||||||Wny~tjdd}|jd|t|dt|ftjd||jx!tdD]}tj|qWWqqXnXtjdn|rtj
|
|	tj||n|
r1tjnd	|_d
S(s
        Fork and then exec sub-process.

        @param path: the path where to run the new process.
        @type path: C{str}
        @param uid: if defined, the uid used to run the new process.
        @type uid: C{int}
        @param gid: if defined, the gid used to run the new process.
        @type gid: C{int}
        @param executable: the executable to run in a new process.
        @type executable: C{str}
        @param args: arguments used to create the new process.
        @type args: C{list}.
        @param environment: environment used for the new process.
        @type environment: C{dict}.
        @param kwargs: keyword arguments to L{_setupChild} method.
        iiR&s&Upon execvpe %s %s in environment %s
:sid %stfileiiiN(RRtgetegidtgetgidtgeteuidtgetuidtsetuidtsetgidtgct	isenabledtdisabletforkRtsetregidtsetreuidtenabletsystsettracet_setupChildt
_execChildtfdopenRtstrtidt	tracebackt	print_exctflushRpR$t_exitR(R;tpathtuidtgidt
executabletargstenvironmenttkwargst
settingUIDtcuregidtcurrgidtcureuidtcurruidtcollectorEnabledtstderrR1((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt_forkcs`		


	

	

cOs
tdS(sB
        Setup the child process. Override in subclasses.
        N(tNotImplementedError(R;RR((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRscCsC|rtj|n|r,t||ntj|||dS(s?
        The exec() which is done in the forked child.
        N(RtchdirRtexecvpe(R;RRRRRRR((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs
cCsd|jj|j|jfS(s5
        String representation of a process.
        s<%s pid=%s status=%s>(t	__class__RJRR(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt__repr__sN(RJRKRLRRRR
RdRoRvRRRR(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRYs					Y		t_FDDetectorcBs\eZdZejZejZeZdZdZ	dZ
dZdZdZ
RS(sy
    This class contains the logic necessary to decide which of the available
    system techniques should be used to detect the open file descriptors for
    the current process. The chosen technique gets monkey-patched into the
    _listOpenFDs method of this class so that the detection only needs to occur
    once.

    @ivars listdir: The implementation of listdir to use. This gets overwritten
        by the test cases.
    @ivars getpid: The implementation of getpid to use, returns the PID of the
        running process.
    @ivars openfile: The implementation of open() to use, by default the Python
        builtin.
    cCs|j|j|jg|_dS(N(t_procFDImplementationt_devFDImplementationt_fallbackFDImplementationt_implementations(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR-scCs|j|_|jS(s
        Return an iterable of file descriptors which I{may} be open in this
        process.

        This will try to return the fewest possible descriptors without missing
        any.
        (t_getImplementationt_listOpenFDs(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRscCsoxh|jD]]}y
|}Wn
q
nXz|jdd}|}Wd|jX||kr
|Sq
W|S(s
        Pick a method which gives correct results for C{_listOpenFDs} in this
        runtime environment.

        This involves a lot of very platform-specific checks, some of which may
        be relatively expensive.  Therefore the returned method should be saved
        and re-used, rather than always calling this method to determine what it
        is.

        See the implementation for the details of how a method is selected.
        s	/dev/nullR%N(RtopenfileR$(R;timpltbeforetfptafter((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs

cCs2d}g|j|D]}t|^q}|S(s
        Simple implementation for systems where /dev/fd actually works.
        See: http://www.freebsd.org/cgi/man.cgi?fdescfs
        s/dev/fd(tlistdirtint(R;tdnameR1tresult((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs(cCs9d|jf}g|j|D]}t|^q#S(sk
        Simple implementation for systems where /proc/pid/fd exists (we assume
        it works).
        s/proc/%d/fd(tgetpidRR(R;RR1((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR'scCsSyddl}Wntk
r)d}n Xtd|j|jd}t|S(su
        Fallback implementation where either the resource module can inform us
        about the upper bound of how many FDs to expect, or where we just guess
        a constant maximum if there is no resource module.

        All possible file descriptors from 0 to that upper bound are returned
        with no attempt to exclude invalid file descriptor values.
        iNii(tresourcetImportErrortmint	getrlimitt
RLIMIT_NOFILERp(R;Rtmaxfds((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR0s	

(RJRKRLRRRtopenRR-RRRRR(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs					!	
		cCs
tjS(sZ
    Use the global detector object to figure out which FD implementation to
    use.
    (tdetectorR(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRHstProcesscBseZdZeeeZeZdZdZ
eZe
ZddddZdZdZdZdZdZdZd	Zd
ZdZdZd
ZdZdZdZdZdZRS(s
    An operating-system Process.

    This represents an operating-system process with arbitrary input/output
    pipes connected to it. Those pipes may represent standard input,
    standard output, and standard error, or any other file descriptor.

    On UNIX, this is implemented using fork(), exec(), pipe()
    and fcntl(). These calls may not exist elsewhere so this
    code is not cross-platform. (also, windows can only select
    on sockets...)
    ic
	s|s9d|	jkstd|	jks9tntj||i|_i}
|	dkridd6dd6dd6}	n|j}|rdG|	GHngfd}i}
y@x|	jD]\}}|rd|G|GHn|dkr4|\}}|rd	||fGHn||
|<||
|<q|dkr~|\}}|rgd	||fGHn||
|<||
|<qt|t	kstd
|f||
|<qW|rdG|
GHn|rdG|
GHn|j
||||||d|
Wnttj
nX||_x|
jD]\}}tj
|
||	|dkr|j||||}||j|<n|	|dkr+|j||||d
t}||j|<q+q+Wy&|jdk	r|jj|nWntjnXt|j|dS(s
        Spawn an operating-system process.

        This is where the hard work of disconnecting all currently open
        files / forking / executing the new process happens.  (This is
        executed automatically when a Process is instantiated.)

        This will also run the subprocess as a given user ID and group ID, if
        specified.  (Implementation Note: this doesn't support all the arcane
        nuances of setXXuid on UNIX: it will assume that either your effective
        or real UID is 0.)
        R%R&iiitchildFDscs/tj\}}j||g||fS(N(RRtextend(R%R&(t_openedPipes(s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRss[%d]sreadFD=%d, writeFD=%ds%r should be an inttfdmapthelpersR=N(RRQRYR-tpipesRtdebugtitemsttypeRRtmapRR$tprototprocessReaderFactorytprocessWriterFactoryR!tmakeConnectionRRRR(R;R<RRRRRRRRRRRRtchildFDttargettreadFDtwriteFDtparentFDtreadertwriter((Rs</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR-hsv	

	



%&		c
CsT|j}|r(tj}|jdn|j}x\tD]Q}||krVq>n|rt||jkrtq>nytj|Wq>q>Xq>W|r|dI|IJn|j	}|j
x|D]}||}||kr|r|d|IJntj|q||jkrtj
|}	|rJ|d||	fIJntj|x6|jD]%\}
}||krd|	||
<qdqdWn|r|d||fIJntj||qWg}xE|jD]7}||kr||j	kr|j|qqqW|r(|dI|IJnx|D]}tj|q/W|jdS(s
        fdmap[childFD] = parentFD

        The child wants to end up with 'childFD' attached to what used to be
        the parent's parentFD. As an example, a bash command run like
        'command 2>&1' would correspond to an fdmap of {0:0, 1:1, 2:1}.
        'command >foo.txt' would be {0:0, 1:os.open('foo.txt'), 2:2}.

        This is accomplished in two steps::

            1. close all file descriptors that aren't values of fdmap.  This
               means 0 .. maxfds (or just the open fds within that range, if
               the platform supports '/proc/<pid>/fd').

            2. for each childFD::

                 - if fdmap[childFD] == childFD, the descriptor is already in
                   place.  Make sure the CLOEXEC flag is not set, then delete
                   the entry from fdmap.

                 - if childFD is in fdmap.values(), then the target descriptor
                   is busy. Use os.dup() to move it elsewhere, update all
                   fdmap[childFD] items that point to it, then close the
                   original. Then fall through to the next case.

                 - now fdmap[childFD] is not in fdmap.values(), and is free.
                   Use os.dup2() to move it to the right place, then close the
                   original.
        sstarting _setupChild
Rs%d already in placesos.dup(%d) -> %dsos.dup2(%d,%d)toldN(tdebug_childRRRRRR5RR$tkeystsortRt_unsetCloseOnExectdupRtdup2tappendRv(
R;RRterrfdtdestListR1t	childlisttchildRt	newtargettctpR((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs\		







cCs|j|j|dS(N(RR(R;RR@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytwriteToChild0scCs'||jkr#|j|jndS(N(RRX(R;R((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytcloseChildFD3scCs:x3|jjD]"}t|tr|jqqWdS(N(Rt
itervaluest
isinstanceRORC(R;R((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytpauseProducing;scCs:x3|jjD]"}t|tr|jqqWdS(N(RRRROR:(R;R((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytresumeProducing@scCs|jddS(sD
        Call this to close standard input on this process.
        iN(R(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt
closeStdinFscCs|jddS(Ni(R(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytcloseStdoutLscCs|jddS(Ni(R(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pytcloseStderrOscCs"|j|j|jdS(N(RRR(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRXRs

cCs*d|jkr&|jdj|ndS(s
        Call this to write to standard input on this process.

        NOTE: This will silently lose data if there is no standard input.
        iN(RR(R;R@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRWscCs7d|jkr)|jdj||n
|jdS(s
        Call this to register producer for standard input.

        If there is no standard input producer.stopProducing() will
        be called immediately.
        iN(RtregisterProducert
stopProducing(R;tproducert	streaming((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR`scCs'd|jkr#|jdjndS(s=
        Call this to unregister producer for standard input.iN(RtunregisterProducer(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRlscCs*d|jkr&|jdj|ndS(s
        Call this to write to standard input on this process.

        NOTE: This will silently lose data if there is no standard input.
        iN(Rt
writeSequence(R;tseq((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRrscCs|jj||dS(N(RRT(R;R0R@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRT|scCsZtj|j|j|j|=y|jj|WntjnX|jdS(N(	RR$RR5RRHRRtmaybeCallProcessEnded(R;RRI((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRHs
cCs5|jr
dS|js$|jdStj|dS(N(RtlostProcessR
RYR(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs		
N( RJRKRLRR
R#RRRRRR+RRORR-RRRRRRRRRXRRRRRTRHR(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRPs2
e	a													
		t
PTYProcesscBseZdZeedZdZddddZdZ	dZ
dZdZdZ
dZd	Zd
ZdZRS(
s<
    An operating-system Process that uses PTY support.
    ic

Cstdkr1t|	ttfr1tdntjj||t	j||t|	ttfr{|	\}
}}n!tj
\}
}tj|}y,|j
||||||d|
d|Wn<t|	ttfstj|
tj|nnXtj|tj|
|
|_|jd|_d|_y|jj|WntjnXt|j|dS(s
        Spawn an operating-system process.

        This is where the hard work of disconnecting all currently open
        files / forking / executing the new process happens.  (This is
        executed automatically when a Process is instantiated.)

        This will also run the subprocess as a given user ID and group ID, if
        specified.  (Implementation Note: this doesn't support all the arcane
        nuances of setXXuid on UNIX: it will assume that either your effective
        or real UID is 0.)
        s:cannot use PTYProcess on platforms without the pty module.tmasterfdtslavefdiiN(tptyRRttupletlistRRR,R-RYtopenptyRtttynameRR$RR.R1R:RMRRRRRRR(
R;R<RRRRRRRtusePTYRRR((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR-s8"


	
		cCsetj|ttdry tjdtjtjB}Wntk
rOqXytj	|tj
dWnnXtj|ntjttdrtj	|tjdnx0t
dD]"}||krtj|qqWtj|dtj|dtj|dx;tD]0}|dkr#ytj|WqSqSXq#q#W|jd	S(
sE
        Setup child process after fork() but before exec().
        t	TIOCNOTTYs/dev/ttyRPt	TIOCSCTTYiiiiN(RR$thasattrttermiosRtO_RDWRtO_NOCTTYR9tfcntltioctlRtsetsidRRpRRRv(R;RRR1((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs6
 

cCsdS(N((R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRscCsdS(N((R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRscCsdS(N((R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRscstjjfdS(sM
        Called when my standard output stream is ready for reading.
        csjjd|S(Ni(RRT(R@(R;(s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt<lambda>
s(RRRR1(R;((R;s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyREscCs|jS(sR
        This returns the file number of standard output on this process.
        (R1(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyR5scCs#|jdkrtj|ndS(Ni(RRYR(R;((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRscCs@tjj||tj|j|jd7_|jdS(sU
        I call this to clean up when one or all of my connections has died.
        iN(RR,RGRR$R1RR(R;RI((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRGscCstj|j|S(s6
        Write some data to the open process.
        (RR>R1(R;R@((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRB(sN(RJRKRLRR
RRRR-RRRRRER5RRGRB(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyRs
0	*						
		(0RLR~RRR2RR RkRZRRRRRtzope.interfaceRttwisted.pythonRRttwisted.python.utilRttwisted.internetRRRttwisted.internet.mainRRttwisted.internet._baseprocessR	ttwisted.internet.interfacesR
RlRRRRR*R,R+ROtobjectRYRRRRR(((s</usr/lib/python2.7/dist-packages/twisted/internet/process.pyt<module>s@`



					r:p		K