From: Lionel Sambuc Date: Thu, 15 Jan 2015 14:19:55 +0000 (+0100) Subject: log: announce presence during startup X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F3015%2F1;p=minix.git log: announce presence during startup Set its restart policy to "reset". Change-Id: I54f350d9d0d9bc571abd9630f27f4c961c7c0778 --- diff --git a/minix/drivers/system/log/log.c b/minix/drivers/system/log/log.c index df267aec2..caba7cf3d 100644 --- a/minix/drivers/system/log/log.c +++ b/minix/drivers/system/log/log.c @@ -69,7 +69,6 @@ static void sef_local_startup() /* Register init callbacks. */ sef_setcb_init_fresh(sef_cb_init_fresh); sef_setcb_init_lu(sef_cb_init_fresh); - sef_setcb_init_restart(sef_cb_init_fresh); /* Register live update callbacks. */ sef_setcb_lu_prepare(sef_cb_lu_prepare); @@ -102,6 +101,9 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info)) /* Register for diagnostics notifications. */ sys_diagctl_register(); + /* Announce we are up! */ + chardriver_announce(); + return(OK); } diff --git a/minix/fs/procfs/service.c b/minix/fs/procfs/service.c index 06db732d7..2d3d71f52 100644 --- a/minix/fs/procfs/service.c +++ b/minix/fs/procfs/service.c @@ -94,7 +94,7 @@ service_get_policies(struct policies * pol, index_t slot) { .label = "vnd", .policy_str = "reset" }, /* system */ { .label = "gpio", .policy_str = "restart" }, - { .label = "log", .policy_str = "restart" }, + { .label = "log", .policy_str = "reset" }, { .label = "random", .policy_str = "restart" }, /* tty */ { .label = "pty", .policy_str = "restart" },