Support fork-like experience for Windows #52
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
tests
Related to adding, modifying, or removing tests
Milestone
When launching our server, we run
distant listen --daemon ...
to have the process detach from SSH and continue running. With Windows, there is no true fork that is reliable and fast. Instead, we will need to spawn a child process and pass all arguments (other than daemon). The child process will need to pipe back over stdout the credentials for the primary process to print out.See https://stackoverflow.com/questions/52580384/fully-detach-childprocess-in-rust-on-windows for discussion. Seems like we need to run the process directly instead of via powershell or something else to ensure that it detaches and is not killed when the parent exits.
Other challenge is figuring out how to test this. We might need another CI just for Windows without WSL.
Blocks #51.
The text was updated successfully, but these errors were encountered: