Yield execution in forked children back to PID 1

- Speeds up start-up a bit
 - Ensures the child is moved to its cgroup as soon as possible

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-04-09 18:59:33 +02:00
1 parent d373068619
commit c85e28b971
3 files changed
+9 -1

No files matched your search

+1
View File
@@ -26,6 +26,7 @@
#define FINIT_HELPERS_H_
#include <mntent.h>
#include <sched.h> /* sched_yield() */
#include <stdarg.h>
#include <sys/resource.h>
#include <sys/types.h>