Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't allocate a pseudo-terminal for each coprocess #135

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

garlick
Copy link
Member

@garlick garlick commented Feb 8, 2024

Problem: powerman allocates a pty to each coprocess, which may impact scalability to many coprocs without really much benefit.

Just use a raw socket instead.

Copy link
Member

@chu11 chu11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Problem: the toy 'bashfun' device seems to be the only thing
that requires a pty.

Drop device script and test.
Problem: xpty.c contains functions that have nothing to do
with ptys.

Rename to fdutil and update users.
Problem: a large configuration with many coprocesses uses up
pseudo-terminals, which may have limited availability.

Start coprocesses with socketpair(2) and fork(2) instead of forkpty(3).

Fixes chaos#133
Problem: pty-related utility functions in fdutil.c are
now unused.

Drop them and the autoconf gunk for forkpty(3).
@mergify mergify bot merged commit 2b965c9 into chaos:master Feb 8, 2024
8 checks passed
@garlick garlick deleted the issue#133 branch February 8, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants