pkstream/pkstream.c: Handle errors from select(2) properly.