You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ControlMode(fix[control_mode]): replace FIFO with os.pipe(), add cleanup, socket_path
why: tempfile.mktemp() has a TOCTOU race; failure-path left open fds and live
subprocess; socket_path was silently ignored.
what:
- Replace tempfile.mktemp() + os.mkfifo() FIFO with os.pipe() pair (no
filesystem, no race condition)
- Add failure-path cleanup in __enter__: if retry_until fails, close _write_fd
and terminate subprocess before re-raising
- Handle socket_path: build socket_args checking socket_name first (-L),
then socket_path (-S), then empty
- Remove unused tempfile and pathlib imports
0 commit comments