[so] fork in interiorul unei functii

Mihai Maruseac mihai.maruseac at gmail.com
Sun Mar 23 21:34:36 EET 2014


Un simplu exeperiment:

]$ gcc -Wall -Wextra 1.c -o 1
]$ ./1
Here is 4003
Here is 0

Codul e la:

http://lpaste.net/101642

2014-03-23 15:16 GMT-04:00 Catalin Vasile <catalinvasile92 at gmail.com>:
> Daca dau fork in interiorul oricarei alte functii, in afara de main, ce se
> intampla cand se termina executia
> functiei pentru copil?
>
> Copilul isi termina si el executia, sau se intoarce in main?
>
> Cătă
> _______________________________________________
> http://ocw.cs.pub.ro/courses/so/info/lista-discutii



-- 
Mihai Maruseac (MM)
"If you don't know, the thing to do is not to get scared, but to
learn." -- Atlas Shrugged.


More information about the so mailing list