if (debug) { if (WIFEXITED(status)) log_d("child process %d exited with status %d", pid, WEXITSTATUS(status)); else if (WIFSIGNALED(status)) log_d("child process %d killed by signal %d", pid, WTERMSIG(status)); else if (WIFSTOPPED(status)) log_d("child process %d stopped by signal %d", pid, WSTOPSIG(status)); } 
if (WIFEXITED(status)) log_d("child process %d exited with status %d", pid, WEXITSTATUS(status)); else if (WIFSIGNALED(status)) log_d("child process %d killed by signal %d", pid, WTERMSIG(status)); else if (WIFSTOPPED(status)) log_d("child process %d stopped by signal %d", pid, WSTOPSIG(status)); 
static void reap_children(void){	int status, pid;	while (1) {		pid = waitpid(-1, &status, WNOHANG | WUNTRACED);		if (pid <= 0)			break;		++numchildren;		if (debug) {			if (WIFEXITED(status))				log_d("child process %d exited with status %d", pid, WEXITSTATUS(status));			else if (WIFSIGNALED(status))				log_d("child process %d killed by signal %d", pid, WTERMSIG(status));			else if (WIFSTOPPED(status))				log_d("child process %d stopped by signal %d", pid, WSTOPSIG(status));		}	}	if (pid < 0 && errno != ECHILD)		lerror("waitpid");}
8520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8520/5d65b797e4e7213cfa318262c8d52a9b1db23247/core.c/clean/src/core.c