On this page
  1. posix.forkpty
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.forkpty

Prev: posix.fork | Up: posix | Next: posix.fpathconf
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.forkpty
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import forkpty

Signature & Overview

posix.forkpty()

Fork a new process with a new pseudo-terminal as controlling tty.

Usage

import os

# Forks a child attached to a new pseudo-terminal
assert hasattr(os, 'forkpty') or True

Gotchas

REPL Inspect

from posix import forkpty
help(forkpty)

Linked from

Related notes