puppy icon indicating copy to clipboard operation
puppy copied to clipboard

clone() and exec() are not exactly like fork() and exec()

Open egranata opened this issue 7 years ago • 1 comments

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

egranata avatar Aug 18 '18 16:08 egranata

Apropos nothing... http://man7.org/linux/man-pages/man2/vfork.2.html

egranata avatar Nov 06 '18 00:11 egranata