Ejercicio Getpid

master
Eric 12 months ago
commit 4a08ff5d18

BIN
GetPid

Binary file not shown.

@ -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…
Cancel
Save

Powered by INFORMATICA.FP.EDU.ES.