chg: do another waitpid() after nanosleep() succeeded
Merge pull request #434 from steenpass/waitpid

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