Hi,
            SORRY for bugging you guys so much...
 Regarding fork() implementation in UML
 
I was going through the below code 
 
long sys_fork(void)
{
 long ret;
 
 current->thread.forking = 1;
 ret = do_fork(SIGCHLD, UPT_SP(&current->thread.regs.regs),
        &current->thread.regs, 0, NULL, NULL);
 current->thread.forking = 0;
 return(ret);
}
 
Can pls let me know why current->thread.forking = 1 was done before
calling do_fork() and then reset after that ?
 
Regards,
Abhi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to