src/udev/udevd.c: add eudev startup message for kmsg

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Richard Narron 2015-11-22 02:27:58 -05:00 committed by Anthony G. Basile
parent 57a0fdeeec
commit 71ff5b6886

View File

@ -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;