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

Remove redundant and erroneous PPID reassignment in launch script #4016

Merged
merged 1 commit into from Jan 9, 2024

Conversation

Chicken-Bones
Copy link
Member

What is the bug?

PPID is a readonly variable, and cannot be reassigned. Our attempt to do so was erroneous. Most of the time bash carries on anyway, but this creates a misleading error in the logs.

/home/cb/.local/share/Steam/steamapps/common/tModLoader/start-tModLoader.sh: line 6: PPID: readonly variable

The bug has been present since the initial implementation in c06e433#diff-e97dbf4a5db5bcbb88768f7ee813b288259c7947f7ca24a468d1104942f991b9

Somehow @covers1624 and I missed the error message (and the fact it didn't do anything and wasn't needed) in our testing

How did you fix the bug?

Removed the offending code. I validated that steam playtime tracking for Terraria continues to work as expected on both Mac and Linux, and that $PPID is still the same without the explicit pass-through (because ./ execution runs in the same shell process).

Are there alternatives to your fix?

No

@Solxanich Solxanich merged commit 728cc60 into 1.4.4 Jan 9, 2024
@Solxanich Solxanich deleted the ppid branch January 9, 2024 13:37
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.

None yet

2 participants