Part of lp.codehosting.sshserver.session View In Hierarchy
Note that instantiating the class creates the fork and sets it up in the reactor.
Method | __init__ | Undocumented |
Method | signalProcess | Send the given signal C{signalID} to the process. It'll translate a |
Method | write | Undocumented |
Method | writeToChild | Undocumented |
Method | closeChildFD | Undocumented |
Method | closeStdin | Undocumented |
Method | closeStdout | Undocumented |
Method | closeStderr | Undocumented |
Method | loseConnection | Undocumented |
Method | childDataReceived | Undocumented |
Method | childConnectionLost | Undocumented |
Method | maybeCallProcessEnded | Undocumented |
Method | _sendMessageToService | Send a message to the Forking service and get the response |
Method | _spawn | Start the new process. |
Method | _openHandleFailures | Open the given path, adding a cleanup as appropriate. |
Method | _connectSpawnToReactor | Undocumented |
Method | _getReason | Undocumented |
This talks to the ForkingSessionService and requests a new process be started. Similar to what Process.__init__/_fork would do.
Returns | The pid, communication directory, and request socket. |
Parameters | call_on_failure | A list holding (callback, args) tuples. We will append new entries for things that we open |
path | The path to open | |
flags | Flags to pass to os.open | |
proc_class | The ProcessWriter/ProcessReader class to wrap this connection. | |
reactor | The Twisted reactor we are connecting to. | |
child_fd | The child file descriptor number passed to proc_class |