I am using the clone feature in linux c.
However, I encountered the error CLONE_VM undeclared (first use in this function) when I tried to compile my code.
I went to google for solutions and one of the site mentioned that #include <sched.h>
must be included inside the code. I have already included #include <sched.h>
in my code but the compilation error still persists.
Any help? :)
int c = clone(child,p+STACKSIZE-1,CLONE_VM|SIGCHLD,NULL) ;