summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-04-10 21:35:40 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-04-10 21:35:40 +0200
commit798d7ab60c476a2c7bcef6918a40dce1756204d1 (patch)
tree84a2d73d8df956ee6ad631db4e36456caae5e5c1 /udevd.c
parentfd7a285e6293fddd3fbc68b519dcd367adeb72c4 (diff)
udevd: at startup write message including version number to kernel log
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index 493bb54514..530fc59a36 100644
--- a/udevd.c
+++ b/udevd.c
@@ -1116,6 +1116,14 @@ int main(int argc, char *argv[], char *envp[])
close(fd);
}
+ fd = open("/dev/kmsg", O_WRONLY);
+ if (fd > 0) {
+ const char *str = "<6>udevd version " UDEV_VERSION " started\n";
+
+ write(fd, str, strlen(str));
+ close(fd);
+ }
+
/* set signal handlers */
memset(&act, 0x00, sizeof(struct sigaction));
act.sa_handler = (void (*)(int)) sig_handler;