You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intmain(void){
intpid1=vfork();
if (pid1) {
printf("Process %d try to do something more! \n",pid1);
intpid2=vfork();
if (pid2) {
printf("Process %d try to do something! \n",pid2);
}else{
execl("/bin/dosomething", "/bin/dosomething", NULL);
}
}else{
execl("/bin/domorething", "/bin/domorething", NULL);
}
return0;
}
For the above case that parent process first vfork one child, when the child start to execute domorething, the parent successfully awake and leave vfork(). But when the parent process vfork the second child process and child process also start to execute something, it seems that the parent process can not be awaked by the code bellow and go into poll method. So the parent process can not timely leave vfork(). Do you have some ideas about the waker?
Hey bros, I am troubled by the
waker
.For the above case that parent process first
vfork
one child, when the child start to executedomorething
, the parent successfully awake and leavevfork()
. But when the parent processvfork
the second child process and child process also start to execute something, it seems that the parent process can not be awaked by the code bellow and go into poll method. So the parent process can not timely leavevfork()
. Do you have some ideas about thewaker
?zCore/zircon-object/src/object/mod.rs
Line 317 in 9290158
The text was updated successfully, but these errors were encountered: