From 71ff5b6886946dacca8ae685ac85cdc174cfdece Mon Sep 17 00:00:00 2001 From: Richard Narron Date: Sun, 22 Nov 2015 02:27:58 -0500 Subject: src/udev/udevd.c: add eudev startup message for kmsg Signed-off-by: Anthony G. Basile --- src/udev/udevd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/udev/udevd.c b/src/udev/udevd.c index b1de97a321..b3fbc27b86 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1125,6 +1125,7 @@ static int parse_argv(int argc, char *argv[]) { int main(int argc, char *argv[]) { struct udev *udev; sigset_t mask; + FILE *f; int fd_ctrl = -1; int fd_netlink = -1; int fd_worker = -1; @@ -1277,6 +1278,12 @@ int main(int argc, char *argv[]) { udev_list_node_init(&event_list); + f = fopen("/dev/kmsg", "w"); + if (f != NULL) { + fprintf(f, "<30>udevd[%u]: starting eudev-" VERSION "\n", getpid()); + fclose(f); + } + if (!arg_debug) { int fd; -- cgit v1.2.3-54-g00ecf