def __init__(self, command):
        self.args = self._split_command_line(command)
        self.command = self.args[0]
        self.exitStatus = -1
        
        try:
            self.pid, self.child_fd = pty.fork()
        except __HOLE__, e:
            raise Exception("Unable to fork")
        
        if self.pid == 0:
            self.child_fd = sys.stdout.fileno()
            os.execvp(self.command, self.args)
dataset/ETHPy150Open joehewitt/devon/devon/spawn.py/SpawnPty.__init__