X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=procd.c;h=f5640c3b968a607f6c2321c27da787562defcc82;hp=ad8028441d597b2c806074b242ee52fa89463605;hb=f45672d80bf2fec4ccb7363de1da6adb9e3f4421;hpb=dc3988c38546c37a02030af8201048272caa7ded diff --git a/procd.c b/procd.c index ad80284..f5640c3 100644 --- a/procd.c +++ b/procd.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -69,6 +70,10 @@ int main(int argc, char **argv) else procd_state_next(); uloop_run(); + uloop_done(); + + if (getpid() == 1) + procd_shutdown(RB_AUTOBOOT); return 0; }