>>From sysvinit src/init.c:main >> /* >> * Is this telinit or init ? >> */ >> isinit = (getpid() == 1); >> for (f = 1; f < argc; f++) { >> if (!strcmp(argv[f], "-i") || !strcmp(argv[f], "--init")) >> isinit = 1; >> break; >> } >> if (!isinit) exit(telinit(p, argc, argv)); >>
ok thanks for looking. I guess this is the end of the discussion on pid == 1 :) > [ snip ] > > Back to the main subject I still don't understand the idea of running > a kernel daemon as pid == 1. What would that buy us? mostly a child reaper when there are no /sbin/init but its pid cannot be 1. C. _______________________________________________ Containers mailing list [EMAIL PROTECTED] https://lists.linux-foundation.org/mailman/listinfo/containers _______________________________________________ Devel mailing list Devel@openvz.org https://openvz.org/mailman/listinfo/devel