Skip to content

Make tup monitor use the correct executable#507

Open
jonatanolofsson wants to merge 1 commit intogittup:masterfrom
jonatanolofsson:tup-monitor-exe
Open

Make tup monitor use the correct executable#507
jonatanolofsson wants to merge 1 commit intogittup:masterfrom
jonatanolofsson:tup-monitor-exe

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