Skip to content

Conversation

@deivid-rodriguez
Copy link
Contributor

What was the end-user or developer problem that led to this PR?

The change proposed by #8320 made sense in principle, but after seeing some issues caused by it, it no longer seems like a good change.

If $0 is changed, it should be assumed that further re-executions will use the assigned value.

From passenger's maintainers explanation of their investigation, they want to re-assign $0 just to get a friendlier ps output, but that's what Process.setproctitle is for, so passenger should be changed to use that.

What is your fix for the problem, implemented in this PR?

Revert #8320.

Fixes #8339.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/revert-argv-rexec-change branch from 303a249 to 22c6fcf Compare December 20, 2024 13:03
@deivid-rodriguez deivid-rodriguez changed the title Revert restarting using Process.argv0 Restart using Process.argv0 only if $PROGRAM_NAME is not a script Dec 20, 2024
@deivid-rodriguez
Copy link
Contributor Author

deivid-rodriguez commented Dec 20, 2024

I modified the patch to not completely revert #8320 so that old passenger keeps working on restarts. Still hope they switch to using Process.setproctitle in the future :)

@deivid-rodriguez deivid-rodriguez merged commit 22b2800 into master Dec 20, 2024
83 checks passed
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/revert-argv-rexec-change branch December 20, 2024 19:42
deivid-rodriguez added a commit that referenced this pull request Dec 20, 2024
…exec-change

Restart using `Process.argv0` only if `$PROGRAM_NAME` is not a script

(cherry picked from commit 22b2800)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundler 2.6.1 cannot install Bundler 2.5.14

2 participants