cours_progra/bac2/os/chap3/ex2.c

15 lines
173 B
C
Raw Normal View History

2023-11-08 09:42:46 +01:00
#include <unistd.h>
#include <stdio.h>
#define printvi(X) printf("%s = %d\n", #X, X);
int main(void)
{
printvi(getpid());
pid_t f = fork();
if(f != 0)
getchar();
}