Skip to content

Conversation

@jrmlhermitte
Copy link

this is just to demonstrate changes needed to get it to build

if let Err(cause) = master.ptsname_r(&mut ptsname_buf) {
return Err(ForkError::BadMaster(cause));
}
//if let Err(cause) = master.ptsname_r(&mut ptsname_buf) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if mac doesn't support ptsname_r, maybe we need to create the pty with openpty?

Also, just noticing this now, but this fork code is wrong. You aren't allowed to allocate in the child after a fork() call and this vec! constructor does so. We should probably fix that at some point.

@ethanpailes
Copy link
Contributor

I think this is superceeded by #4

@ethanpailes ethanpailes closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants