| |
- copy(master_fd, master_read=<function read at 82a6118>, stdin_read=<function read at 82a6118>)
- # Parent copy loop.
- # Copies
- # pty master -> standard output (master_read)
- # standard input -> pty master (stdin_read)
- fork()
- # Fork and make the child a session leader with a controlling terminal.
- # Returns (pid, master_fd)
- master_open()
- # Open pty master. Returns (master_fd, tty_name). SGI and Linux/BSD version.
- read(fd)
- # Default read function.
- select(no arg info)
- select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xlist)
- Wait until one or more file descriptors are ready for some kind of I/O.
- The first three arguments are lists of file descriptors to be waited for:
- rlist -- wait until ready for reading
- wlist -- wait until ready for writing
- xlist -- wait for an ``exceptional condition''
- If only one kind of condition is required, pass [] for the other lists.
- A file descriptor is either a socket or file object, or a small integer
- gotten from a fileno() method call on one of those.
- The optional 4th argument specifies a timeout in seconds; it may be
- a floating point number to specify fractions of seconds. If it is absent
- or None, the call will never time out.
- The return value is a tuple of three lists corresponding to the first three
- arguments; each contains the subset of the corresponding file descriptors
- that are ready.
- *** IMPORTANT NOTICE ***
- On Windows, only sockets are supported; on Unix, all file descriptors.
- slave_open(tty_name)
- # Open the pty slave. Acquire the controlling terminal.
- # Returns file descriptor. Linux version. (Should be universal? --Guido)
- spawn(argv, master_read=<function read at 82a6118>, stdin_read=<function read at 82a6118>)
- # Create a spawned process.
- writen(fd, data)
- # Write all the data to a descriptor.
|