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

Enhance dotenv run: Switch to execvpe for better resource management and signal handling #523

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

eekstunt
Copy link
Contributor

@eekstunt eekstunt commented Jul 8, 2024

By switching to os.execvpe instead of subprocess.Popen, we can replace the parent dotenv process with the new process specified by the user. This results in only one active process—the program the user intended to run.

Closes #522

@eekstunt
Copy link
Contributor Author

Hello @theskumar @bbc2,
are you available for a review of this small PR?

@theskumar
Copy link
Owner

This look great! Merging in will be part of new release

@theskumar theskumar merged commit 4543837 into theskumar:main Jul 18, 2024
7 checks passed
@pmeier
Copy link

pmeier commented Aug 21, 2024

@theskumar any chance you can cut a release soon that includes this PR? Spent three hours today hunting a ghost only to find that the signal I sent is swallowed by dotenv run.

@aberenda-optifino
Copy link

Hi
Any updates here?
Do you know when you can release?

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.

Enhance dotenv run: Switch to execvpe for better resource management and signal handling
4 participants