42
42
setsid(), chdir(), dup2(),
43
43
STDERR_FILENO, execv() */
44
44
#include <stdlib.h> /* free(), EXIT_FAILURE, realloc(),
45
EXIT_SUCCESS, malloc(), _exit(),
47
47
#include <dirent.h> /* opendir(), readdir(), closedir() */
48
48
#include <inttypes.h> /* intmax_t, strtoimax() */
49
49
#include <sys/stat.h> /* struct stat, lstat(), S_ISLNK */
52
51
sig_atomic_t interrupted_by_signal = 0;