mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 04:35:57 -06:00
Many Microsoft employees have contributed to the Windows Subsystem for Linux, this commit is the result of their work since 2016. The entire history of the Windows Subsystem for Linux can't be shared here, but here's an overview of WSL's history after it moved to it own repository in 2021: Number of commits on the main branch: 2930 Number of contributors: 31 Head over https://github.com/microsoft/WSL/releases for a more detailed history of the features added to WSL since 2021.
1010 B
1010 B
Wslhost.exe
wslhost.exe is a Windows executable that's used to display desktop notifications, and run Linux processes in the background.
COM server
When running as COM server, wslhost.exe registers a NotificationActivatorFactory, which is then used to display desktop notifications to the user.
Notifications can be used to:
- Notify the user about a WSL update
- Warn the user about a configuration error
- Notify the user about a proxy change
See: src/windows/common/notifications.cpp
Background processes
When wsl.exe terminates before the associated Linux processes terminates, wslhost.exe takes over the lifetime of the Linux process.
This allows Linux processes to keep running Windows commands and access the terminal even after the associated wsl.exe terminates.
See src/windows/wslhost/main.cpp and interop