boot(8): exec() bootrc instead of forkinga sub process

This commit is contained in:
cinap_lenrek 2011-06-04 08:43:45 +00:00
parent 70176bc77e
commit f9c92129f3

View file

@ -60,5 +60,5 @@ boot(int argc, char *argv[])
snprint(buf, sizeof(buf), "/%s/bin", cputype);
bind(buf, "/bin", MAFTER);
bind("/rc/bin", "/bin", MAFTER);
run("/bin/bootrc", nil);
execl("/bin/bootrc", "bootrc", nil);
}