added event trigger module for waitpid and other events