Separate the module 'waitpid' from the module 'sys_wait'.