From b4e7424a4dd397885048761ffcdd7a40d6d4c845 Mon Sep 17 00:00:00 2001 From: Juanjo Date: Fri, 29 Sep 2023 16:02:16 +0200 Subject: [PATCH] =?UTF-8?q?Arreglo=20salto=20de=20l=C3=ADnea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proceso34.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proceso34.c b/proceso34.c index c3e5dfb..bea1cd7 100644 --- a/proceso34.c +++ b/proceso34.c @@ -12,7 +12,8 @@ void main(void) { } // Si todo va bien y se crea el hijo tenemos que hacer // que el programa ejecute un código con distinto para cada - // proceso if (pid == 0) { + // proceso + if (pid == 0) { // Nos encontramos en el hijo pid2 = fork(); //soy el hijo y creo al nieto switch(pid2) {