commit
4a08ff5d18
@ -0,0 +1,12 @@
|
|||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
void main(void) {
|
||||||
|
__pid_t id_actual, id_padre;
|
||||||
|
id_actual = getpid();
|
||||||
|
id_padre = getppid();
|
||||||
|
|
||||||
|
printf("Mi PID es: %d\n", id_actual);
|
||||||
|
printf("El PID de mi papa es: %d\n", id_padre);
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue