Read from the pipe while thread is NOT interrupted

Just reading through your book. Very informative. Thank you.
Merge pull request #1 from codecustodian/patch-1

Read from the pipe while thread is NOT interrupted (Thanks to codecustodian for catching this error!)