aboutsummaryrefslogtreecommitdiff
path: root/spawn.c (follow)
Commit message (Collapse)AuthorAgeLines
* debug: rename assert() to xassert(), to avoid clashing with <assert.h>Craig Barnes2021-01-16-1/+1
|
* Print stack trace on assert() failure or when calling fatal_error()Craig Barnes2021-01-16-1/+1
| | | | | | Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
* reaper: add optional callbackDaniel Eklöf2020-12-26-1/+1
| | | | | | | | | When calling ‘reaper_add()’, the caller can provide a callback. If non-NULL, the reaper will call the callback to handle the actual reaping. If the callback is NULL, or if it returns false, the reaper reaps the child process.
* log: include 'fmt' in __VA_ARGS__Daniel Eklöf2020-08-23-1/+1
| | | | | This ensures all calls have at least one __VA_ARGS__ argument, thus making them ISO C99 compliant.
* spawn: add optional stdin/stdout/stderr redirection FDsDaniel Eklöf2020-07-15-3/+7
| | | | | If not -1, spawn() will redirect the child's stdin/stdout/stderr to these FDs.
* term: break out fork+exec functionality to a separate fileDaniel Eklöf2020-07-15-0/+72