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

Make tup monitor use the correct executable #507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonatanolofsson
Copy link
Contributor

@jonatanolofsson jonatanolofsson commented Aug 30, 2024

In tup monitor, tup uses "tup" as path to tup in the rebuild instead of calling the currently executed version. This commit fetches the current executable (using /proc/self/exe) and uses the same path for the new update process.

@jonatanolofsson
Copy link
Contributor Author

Note that the executable is not sent to the monitor in argv[0], so this fix is linux(/unix?) specific. Note however that the entire monitor function is linux only, so I figure that's alright.

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.

1 participant