* [uml-devel] Regarding fork() implementation in UML
@ 2007-03-15 14:29 Krishnappa Abhijith-A21204
2007-03-16 2:29 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Krishnappa Abhijith-A21204 @ 2007-03-15 14:29 UTC (permalink / raw)
To: user-mode-linux-devel
[-- Attachment #1.1: Type: text/plain, Size: 508 bytes --]
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(¤t->thread.regs.regs),
¤t->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
[-- Attachment #1.2: Type: text/html, Size: 2537 bytes --]
[-- Attachment #2: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #3: Type: text/plain, Size: 194 bytes --]
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-16 2:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15 14:29 [uml-devel] Regarding fork() implementation in UML Krishnappa Abhijith-A21204
2007-03-16 2:29 ` Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.