fork pid_t fork(void); 返回值: 0: 子进程 子进程 PID(大于0 的整数): 父进程 getpid() getppid() 转载于:https://www.cnblogs.com/fengyang66/p/6021100.html