Make read_user() non-blocking, and add select() call.