Added block_SIGIO and unblock_SIGIO