- bound relay input and detach saturated output transports - drain PTY output after child exit - make terminal close lifecycle race-safe - prune expired CC sessions and audit closure reasons - require matching agent hello/auth identities - validate terminal IDs and PTY dimensions
8 lines
194 B
Bash
8 lines
194 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# sometimes it breaks, run to fix
|
|
|
|
sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
|
|
sudo systemctl restart systemd-binfmt
|