Skip to content

Conversation

geekylthyosaur
Copy link
Contributor

Close #24.
I've looked through the code and found that using fork() right before execvp*() requires replacing exec() return type std::convert::Infallible with something else. So, instead I use fork() right after Ctrl+Enter was detected.

Copy link
Owner

@l4l l4l left a comment

Choose a reason for hiding this comment

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

using fork() right before execvp*() requires replacing exec() return type .. instead I use fork() right after Ctrl+Enter was detected

That's a way better approach otherwise fork logic need to be duplicated in each Mode.

--

Overall looks good to me

@l4l l4l enabled auto-merge (squash) October 24, 2022 11:44
@l4l l4l merged commit e71aa55 into l4l:master Oct 24, 2022
@l4l
Copy link
Owner

l4l commented Oct 24, 2022

Thanks!

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.

ctrl+enter hotkey for fork then exec
2 participants