twisted / twisted/twisted

improve process module with generic support for pipes, PTYs, socketpairs etc.

Open
#1,939 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core enhancement new priority-normal
Dominant language
Python
Stars
6k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
10

Description

naked's avatar naked reported
Trac ID trac#1939
Type enhancement
Created 2006-07-19 20:07:19Z

The process module could be improved in a number of ways.

It should be possible to use an arbitrary number of reader pipes, writer pipes, PTYs, socketpairs and other communication channels to a process. These communication channels should be freely assignable to any set of child filedescriptors.

It should be possible to somehow assign separate protocols for communication channels. For example, it should be possible to use NetstringReceiver for stdin/stdout and LineReceiver for stderr for the same process.

It should be possible specify a preexec function or a list of preexec functions to execute after forking but before execing the child. For example, this is useful for a combination of chroots and chdirs before execing the child.

Attachments:

Searchable metadata
trac-id__1939 1939
type__enhancement enhancement
reporter__naked naked
priority__normal normal
milestone__ 
branch__ 
branch_author__ 
status__new new
resolution__None None
component__core core
keywords__ 
time__1153339639000000 1153339639000000
changetime__1362689213000000 1362689213000000
version__None None
owner__naked naked
cc__exarkun cc__jknight cc__manishtomar

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the process module and review the attached twisted-process-improvements.patch and twisted-process-improvements-2.patch to understand the proposed direction. The work is done when arbitrary communication channels can be assigned to child file descriptors, separate protocols can be used per channel, and preexec functions are supported as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.