// Linux 程序b
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
int main(int argc, char *argv[], char **environ) {
int pid;
pid = fork();
if(pid < 0) {
printf("Fork failed.\n");
exit(1);
} else if(pid == 0) {
printf("Call another program a.out.\n");
execve("a.out", argv, environ);
}
exit(0);
return 0;
}