#include<sys/types.h>
int fun1()
{
if(vfork()==0);
else printf("Fun1\n");
}
int fun2()
{
printf("Fun2\n");
}
int main()
{
fun1();
fun2();
return 0;
}
Why does this program giving seg fault.?
--
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.