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

fix: don't fork(), exec() and wait(), but just exec() #80

Closed
wants to merge 1 commit into from

Conversation

hanshuebner
Copy link

@hanshuebner hanshuebner commented Oct 24, 2023

This change causes the perl process to not hang around during the execution of OpenResty, which is particularly notable when using OpenResty to start something long-running in the foreground.

The code for forwarding the signals to the child process has been removed in the process. Signals will be handled by the OpenResty process as normal instead of through the intermediate process that forwards them.

This change causes the perl process to not hang around during the
execution of OpenResty, which is particularly notable when using
OpenResty to start something long-running in the foreground.

The code for forwarding the signals to the child process has been
removed in the process.  Signals will be handled by the OpenResty
process as normal instead of through the intermediate process that
forwards them.
@hanshuebner
Copy link
Author

@flrgh pointed out that this change would prevent the cleanup of the temporary prefix directory from happening, which would not be desireable. Closing.

@hanshuebner hanshuebner closed this Nov 7, 2023
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