endless-r0ad
ee6f3c7d8c
fix
2026-06-17 22:46:50 -04:00
endless-r0ad
b4ae4288f0
revert to detach here since join deadlocks the client on mac
2026-06-16 15:54:43 -04:00
Jim Thoenen
e68ea4db54
Ope, make sure header is included for Windows too
2026-04-22 18:00:32 -05:00
Jim Thoenen
5045d557a6
Ignore SIGTTIN, and only allow looped input stream reopens when directed to use named pipes
2026-04-22 17:28:27 -05:00
Jim Thoenen
f9f56fc38c
Minor formatting fix
2026-04-16 14:29:20 -05:00
Jim Thoenen
79cfa3a6aa
Corresponding update on the Windows side
2026-04-16 14:20:40 -05:00
Jim Thoenen
1af044d11c
Linux+Mac: Allow pipes to go through multiple open+close cycles for the console
2026-04-16 14:18:04 -05:00
Jim Thoenen
75a8fa781c
On Win32, use Win32 sync objects, particularly SRW Locks, for the console thread...
...
This is because we're forced to use TerminateThread on Win32, which, unlike
POSIX, leaves the mutex in a locked state, leading to undefined behavior when
destructed. On Debug builds, this raises an Abort signal. By switching to
SRW Locks, which don't even have a destructor, we can destruct at any time.
2026-03-04 10:12:49 -06:00
Jim Thoenen
699213d944
Switch to tab indentation...
2026-01-14 16:39:57 -06:00
Jim Thoenen
827923b6a1
Avoid unnecessary unlocks and relocks in the thread.
2026-01-08 09:26:55 -06:00
Jim Thoenen
9eaf343df8
Update the Windows side to also do a joinable thread termination
2026-01-07 18:58:52 -06:00
Jim Thoenen
68cbb68e08
On non-Win32 / pthread platforms, cancel and join the console thread on terminate
2026-01-07 17:26:03 -06:00
Jim Thoenen
f5742f9726
Put CommandStreamReader into an anonymous namespace to avoid polluting global
2026-01-01 16:07:18 -06:00
Jim Thoenen
d7ec9acebd
Break out the standard-C++-based command stream reader into a common util
2026-01-01 12:55:08 -06:00