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

How to restart the process to update? #62

Open
niklasf opened this issue Nov 26, 2020 · 2 comments
Open

How to restart the process to update? #62

niklasf opened this issue Nov 26, 2020 · 2 comments

Comments

@niklasf
Copy link
Contributor

niklasf commented Nov 26, 2020

On Unix it's possible to replace the current process with the updated version using https://doc.rust-lang.org/stable/std/os/unix/process/trait.CommandExt.html#tymethod.exec. Could this crate provide mechanisms for other platforms?

@niklasf
Copy link
Contributor Author

niklasf commented Sep 1, 2022

The closest thing I could find is https://github.com/lichess-org/fishnet/blob/90f12cd532a43002a276302738f916210a2d526d/src/main.rs#L428-L439, which is good enough for my use case, but not a general purpose solution.

@RouHim
Copy link

RouHim commented Nov 13, 2023

Thank you very much, your workaround is pretty nice.
Would be awesome if self_update handles the restart part automatically.

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

No branches or pull requests

2 participants