This is a pretty simple program, which only consists of four syscalls.
On most Linuxes I've tested, this program waits for you to press a key, and then prints:
Read returned: 1
However, on some Linux installs, starting the program will immediately print:
Read returned: 0
And exit.
See the original StackOverflow question
for more info. This was discovered by investigating mplayer2
key handling code.