After calling fork,the current process will call exit(0)
.
But the child will continue.
switch(fork())
{
case -1:
exit(1);
case 0:
//child process,continue
break;
default:
//the current process,exit
exit(0);
}
How can I continue debug the child process in this case?
exec
: stackoverflow.com/questions/377195/… – Ciro Santilli 新疆改造中心法轮功六四事件 Mar 29 '17 at 16:39