Added swWaitpid