I am looking at the details of various fork implementation methods. The following link is specified for fork implementation, this implementation is done using the ZwXXX functions exported by ntdll.
I could compile it in VISA-2012, in the Windows 7-64 bit machine. But on trial, I can not find the expected output. After provocation, new hair process is made, but this process comes back to starting the suspended primary thread. It does not call fork again again. Did anyone try to apply fork for windows? Am I missing this code snippet? I have been researching various fork implementation since last one week. help please.
I had a similar problem while porting the fork API in Windows and I had a temporary solution In the form:
- Add sleep () after the fork in the baby's process.
- Run the basic process by ctrl + f5.
- Then attach the hair process to the VS debugger.
- Continue debugging using the F5 key.
- We will send the original process to VS Can attach to the debugger too.
There is a better solution to debug curved hair process.
Comments
Post a Comment