]> err.no Git - systemd/commitdiff
udevd: at startup write message including version number to kernel log
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 10 Apr 2008 19:35:40 +0000 (21:35 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 10 Apr 2008 19:35:40 +0000 (21:35 +0200)
udevd.c

diff --git a/udevd.c b/udevd.c
index 493bb54514ce4fa6ea16bf7b119354c409b6a788..530fc59a369a111e5465ec6a23b5bdc2bcf9df6b 100644 (file)
--- 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;