#define PLANCK_FEATURE_RUN 1 /* vfork, never fork: a no-MMU kernel (rv32 planck) has no fork(), so musl's fork() returns -1 and a * fork-based PID 1 silently spawns nothing. vfork + exec is what every arch supports, and it is the * same code on an MMU kernel. The child touches no memory the parent reads before exec. */ static void planck_run(const char *cmd) { pid_t p = vfork(); if (p == 0) { execl(PLANCK_SHELL, "sh", "-c", cmd, NULL); _exit(1); } if (p > 0) waitpid(p, NULL, 0); }