pid_t wait(int *status); //or NULL ... returns a value defined as type pid_t. ... printf("\n my parent process id is: %d", getppid()); exit(0);.
確定! 回上一頁