doc/docs/technical-documentation/relay.md
Relay is a WSL2 Linux process created by a session leader. Its job is to create a Linux process on behalf of the user, and relay its output back to Windows.
A relay is created when a LxInitMessageCreateProcessUtilityVm message is sent to a session leader. Once created, the relay creates multiple hvsocket channels with wslservice.exe.
These channels are used to:
Once those channels are configured, the relay forks() into two processes:
exec() and starts the user process