It allows to exit the thread immediately instead of waiting for select to timeout (one second in the current code).