Roland McGrath Fri, 18 Jun 2004 16:18:42 -0500
> sysvinit checks its own PID to determine wether it's being run as init or > as userland utility. FWIW, there's also a -i option that overrides this.
It can probably do getpid () == 1 || getppid () == 1.