exec does not start a new process. exec replaces the current process with a new process executing the given executable. A successful exec will never return, as the original process's code is no longer executing. exec is often combined with fork to split off a child process and cause that process to execute the given executable.
In reply to Re^2: Creating External Processes without losing control
by Anonymous Monk
in thread Creating External Processes without losing control
by gerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |