Ignore the return value on the write to stdout.
Show the file descriptor when printing the receive block.
Detect Linux and add -lpthreads to the command line.
Make it easier to show the threading bug.