Properties of exec created processes

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2024-04-25

Note: This is unix specific

exec

vs. fork

Usage

Typically we fork a running program first, then exec the forked child process to run a different program.

Usually we modify child process state (e.g. time zone, working directory, file handlers) after forking but before execing

Resources