18 May
2022
18 May
'22
6:57 a.m.
On Wed May 18 01:23:07 2022 +0000, Chip Davis wrote:
(and figure out if there's an equivalent we could do on macOS) System event sockets (`PF_SYSTEM`, `SYSPROTO_EVENT`) are what you want here. They have the ability to notify the caller when an interface appears (`KEV_DL_IF_ATTACHED`), when it is about to disappear (`KEV_DL_IF_DETACHING`), and when it has vanished (`KEV_DL_IF_DETACHED`). Nice, thanks.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/78#note_969