mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-23 23:49:45 +07:00
udevd: at startup write message including version number to kernel log
This commit is contained in:
parent
fd7a285e62
commit
798d7ab60c
8
udevd.c
8
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;
|
||||
|
Loading…
Reference in New Issue
Block a user