Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module process :: Class PTYProcess |
|
Ephemeral
--+ |Ephemeral
--+ | | |Logger
--+ | | |FileDescriptor
--+ | PTYProcess
Method Summary | |
---|---|
Spawn an operating-system process. | |
closeStderr(self)
| |
closeStdin(self)
| |
closeStdout(self)
| |
I call this to clean up when one or all of my connections has died. | |
Called when my standard output stream is ready for reading. | |
This returns the file number of standard output on this process. | |
maybeCallProcessEnded(self)
| |
processEnded(self,
status)
| |
Try to reap a process (without blocking) via waitpid. | |
signalProcess(self,
signalID)
| |
Write some data to the open process. | |
Inherited from FileDescriptor | |
Called after a loseConnection(), when all data has been written. | |
Called when data is available for writing. | |
Close the connection at the next available opportunity. | |
| |
Register to receive data from a producer. | |
| |
Start waiting for read availability. | |
Start waiting for write availability. | |
Stop consuming data. | |
| |
Stop waiting for read availability. | |
Stop waiting for write availability. | |
Stop consuming data from a producer, without disconnecting. | |
Reliably write some data. | |
| |
Inherited from Logger | |
Override this method to insert custom logging behavior. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
Inherited from FileDescriptor | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
int |
bufferSize = 65536 |
int |
connected = 0 |
str |
dataBuffer = ''
|
int |
disconnected = 0 |
int |
disconnecting = 0 |
int |
offset = 0 |
NoneType |
producer = None |
int |
producerPaused = 0 |
int |
streamingProducer = 0 |
Method Details |
---|
__init__(self,
reactor,
command,
args,
environment,
path,
proto,
uid=None,
gid=None,
usePTY=None)
|
connectionLost(self, reason)I call this to clean up when one or all of my connections has died. |
doRead(self)Called when my standard output stream is ready for reading. |
fileno(self)This returns the file number of standard output on this process. |
reapProcess(self)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.) |
writeSomeData(self, data)Write some data to the open process. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:07:58 2004 | http://epydoc.sf.net |