Skip to content

fix: use exec to replace child process on unix systems#262

Merged
MordechaiHadad merged 1 commit into
MordechaiHadad:masterfrom
icholy:master
Mar 2, 2025
Merged

fix: use exec to replace child process on unix systems#262
MordechaiHadad merged 1 commit into
MordechaiHadad:masterfrom
icholy:master

Conversation

@icholy

@icholy icholy commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

My CPU gets pegged at 100% and if I strace, I see a loop of wait4 calls. Instead of creating a sub-process and waiting for it to complete, the proxy can simply replace itself with the nvim process.

@MordechaiHadad

Copy link
Copy Markdown
Owner

oh shit this is cool af didnt know this existed, could you delete this depdency as well:

https://github.com/MordechaiHadad/bob/blob/master/Cargo.toml#L86

IIRC we only use it for forwarding the killing signal to neovim so this isn't needed anymore (unless we use it for other shit which i doubt)

@icholy

icholy commented Mar 1, 2025

Copy link
Copy Markdown
Contributor Author

@MordechaiHadad done

@MordechaiHadad MordechaiHadad merged commit 2502e96 into MordechaiHadad:master Mar 2, 2025
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