EST. 2026 — Notes from real server work SYSADMIN · SECURITY · AI · DIRECTADMIN Issue 01
THE SYSADMIN ALMANAC
Home / Tags / C#
C#

#C#

1 articles
Workflow
Child Processes: Unread stderr Hangs, Dead Readers Cause Crashes
Linux

Child Processes: Unread stderr Hangs, Dead Readers Cause Crashes

A stdio server that had passed its smoke test 9/9 froze after I added debug logs to stderr at 4 KB per line because the caller opened a pipe but never read it. On the other side, a child process that must keep running after the UI closes fails every time it prints if its stdout is a pipe whose reader has died. Includes how to pass an inheritable file handle to a child using CreateProcess from C#.

#ipc#csharp#dotnet#windows
12 min read·3 Nov