Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
theskumar merged 1 commit intotheskumar:maintheskumar/python-dotenv:mainfrom
eekstunt:522-use-execvpeeekstunt/python-dotenv:522-use-execvpeCopy head branch name to clipboard
Jul 18, 2024
Merged

Enhance dotenv run: Switch to execvpe for better resource management and signal handling#523
theskumar merged 1 commit intotheskumar:maintheskumar/python-dotenv:mainfrom
eekstunt:522-use-execvpeeekstunt/python-dotenv:522-use-execvpeCopy head branch name to clipboard

Conversation

@eekstunt
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@theskumar
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.