All languages

C

You're viewing a free preview. Sign in free to read every script.

Why this exists Every time a shell runs a command, it does three things: fork creates a copy of itself, the child execs the new program, and the parent waits for it. Jenkins agents, container runtimes and process…

Processes: fork, exec and wait, with Captured Output

How a program starts another one on Linux: fork, execvp and waitpid, reading the exit status correctly, capturing output through a pipe, and why system() with untrusted input is dangerous. The mechanism behind every shell.

Sign in free to read this script, along with the rest of the library.

Sign in free