/*
 * multiple exec via fork
 */

#include <unistd.h>
#include <sys/wait.h>

int main(void)
{
	pid_t p1 = fork();
	if (p1 == 0) {
		char *a[] = {"/bin/true", 0};
		execv("/bin/true", a);
		_exit(1);
	}
	pid_t p2 = fork();
	if (p2 == 0) {
		char *a[] = {"/bin/false", 0};
		execv("/bin/false", a);
		_exit(1);
	}
	int s;
	if (p1 > 0) waitpid(p1, &s, 0);
	if (p2 > 0) waitpid(p2, &s, 0);
	return 0;
}
