onchange: Use nanosleep(2) instead of sleep(3) in `run'.