試著突破低點,往高點邁進
#include <stdio.h> #include <unistd.h> int main(void) { printf("當前程序PID:%d\n",(int)getpid()); printf("父程序PID:%d\n",(int)getppid()); }