Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New with_path_overlay launcher doesn't clean up #4

Closed
jaraco opened this issue Aug 6, 2016 · 0 comments
Closed

New with_path_overlay launcher doesn't clean up #4

jaraco opened this issue Aug 6, 2016 · 0 comments

Comments

@jaraco
Copy link
Owner

jaraco commented Aug 6, 2016

Q: When does a with context never exit?
A: When the command in the context invokes execv.

It occurred to me today that using execve to launch the child process would eliminate the cleanup logic for the temporary directory.

I started to try to think of some clever way to cause the cleanup logic to be invoked after the child process has exited:

  • somehow inject an atexit behavior into the child Python process.
  • run a separate subprocess that monitors the parent and cleans up when the parent exits.
  • invent an OS-level process-temporary store, a part of the file system that the OS will guarantee will be cleaned up when the process exits. How cool would that be? I'm surprised such a thing doesn't already exist.

Then I realized, I'm trying too hard and I should probably just switch rwt back to the old subprocess behavior.

@jaraco jaraco closed this as completed in 95ada5c Aug 6, 2016
jaraco pushed a commit that referenced this issue Feb 7, 2019
use spaces, fixed indentation, format using autopep8
jaraco added a commit that referenced this issue Jan 20, 2024
* Create SECURITY.md

Signed-off-by: Joyce <joycebrum@google.com>

* Remove the security contact from the README, as it's now redundant.

Closes jaraco/tidelift#3.

---------

Signed-off-by: Joyce <joycebrum@google.com>
Co-authored-by: Joyce <joycebrum@google.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant