Minor fix in -open. Use local file descriptor variable instead of earlier local descriptor variable in read loop.