summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Narron <richard@aaazen.com>2015-11-22 02:27:58 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-11-22 02:27:58 -0500
commit71ff5b6886946dacca8ae685ac85cdc174cfdece (patch)
treec8a1a0439c60420b9796ca1fd0a02260bae5f804 /src
parent57a0fdeeecd3ed9e8224e07f4506fbbc1d36a147 (diff)
src/udev/udevd.c: add eudev startup message for kmsg
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/udev/udevd.c7
1 files changed, 7 insertions, 0 deletions
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;