puppy
puppy copied to clipboard
clone() and exec() are not exactly like fork() and exec()
There are not-so-subtle differences between fork() and clone() and our exec() vs UNIX exec():
-
fork() returns at the point of call and just gives out different return values for parent vs. child;
-
clone() resumes the child at a whole new function;
-
our exec() spawns a new process;
-
UNIX exec() replaces the address space.
These will somehow need to be addressed in order for newlib to be ported properly
Apropos nothing... http://man7.org/linux/man-pages/man2/vfork.2.html