added rules for fork_waitpid