well is gets stuck and i dont know why.......
pid=fork\(\);
if\(pid==0\)
\{
pause\(\);
write\(1,"child",5\);
exit\(0\);
\}
else
\{
sleep\(1\);
kill\(pid,SIGCONT\);
write\(1,"parent",5\);
wait\(0\);
\}
all=1;
exit\(0\);
Can anybody tell me please why is that so?