chg: do another waitpid() after nanosleep() succeeded