Hi,
What happens to the Notify Callback function, if we clone the process after notify_registry call ? To be clear, I want to know which process's callback function will be called ? since after the clone, both the process will have the CallBack functions.
Here is what it looks like :
void notify_call_back()
{
}
int main()
{
Notify_registerEvent();
clone(thread_fuc1);
clone(thread_fuc2);
exit(0);
}
void thread_fuc1()
{
wait_for_event(); <--- is it this ?
}
void thread_fuc2()
{
wait_for_event(); <---- Is it this ?
}
.I have similar design, but I am not receiving the notify events in neither cloned threads .
Thanks
Ashok