switch (pid_fork=fork()) { case -1:error("Ohhhh!! no puedo hacer un fork!!"); case 0:sprintf(s, "Hola! soy el fruto de un fork!");if (write(1, s, strlen(s)) < 0) error("Ups! A tu salida estandar le pasa algo..."); default:sprintf(s, "Yooo soooy tu padreee");write(1, s, strlen(s);wait(&st);exit(0);}
Re:Acuerdo
(Puntos:2);P
¡Always Look On the Bright Side of Life! Ti tú tituti tuti tú!