~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/internet/iocpreactor/proactor.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        c.connect()
101
101
        return c
102
102
 
103
 
    def spawnProcess(self, processProtocol, executable, args=(), env={}, path=None, usePTY=0):
 
103
    def spawnProcess(self, processProtocol, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None):
104
104
        """Spawn a process."""
 
105
        if uid is not None:
 
106
            raise ValueError("Setting UID is unsupported on this platform.")
 
107
        if gid is not None:
 
108
            raise ValueError("Setting GID is unsupported on this platform.")
 
109
        if usePTY:
 
110
            raise ValueError("PTYs are unsupported on this platform.")
 
111
        if childFDs is not None:
 
112
            raise ValueError(
 
113
                "Custom child file descriptor mappings are unsupported on "
 
114
                "this platform.")
105
115
        return process.Process(self, processProtocol, executable, args, env, path)
106
116
    
107
117
    def logPrefix(self):