hacktoberfest-2018/code/process.c
2018-10-11 05:59:07 +01:00

21 lines
378 B
C
Executable File

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
int main(){
pid_t getpid(void);
pid_t getppid(void);
printf("PID = [%d]\n",getpid());
printf("PPID = [%d]\n",getppid());
return 0;
}