1
strace is an incredibly handy tool when you need it.
$ strace ./hello
execve("./hello", ["./hello"], 0x7ffc64e063b0 /* 52 vars */) = 0
write(0, "\177", 1) = 1
In other news, writing to stdin is a definite sign of a bug.
Wilfred Hughes