Correct some waitpid calls

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>