using condvar to stop the rlogserver