add debug message to wait_for_forks