The write and except variables passed into "stream_select" should be arrays.