KEMBAR78
Enhance dotenv run: Switch to execvpe for better resource management and signal handling by eekstunt · Pull Request #523 · theskumar/python-dotenv · GitHub
Skip to content

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
@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