]> err.no Git - systemd/commitdiff
udevd: log info for created/killed workers
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 9 Jun 2009 16:31:14 +0000 (18:31 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 9 Jun 2009 16:31:14 +0000 (18:31 +0200)
udev/udevd.c

index e7a0c9840aba4b23e71b0e36877c78bcf3bbdb6b..d63fa7f48646ee7911c9d9ddc6221e3e801bd3f5 100644 (file)
@@ -307,6 +307,7 @@ static void worker_new(struct event *event)
                event->state = EVENT_RUNNING;
                udev_list_node_append(&worker->node, &worker_list);
                childs++;
+               info(event->udev, "seq %llu forked new worker [%u]\n", udev_device_get_seqnum(event->dev), pid);
                break;
        }
 }
@@ -701,6 +702,7 @@ static void handle_signal(struct udev *udev, int signo)
                                udev_list_node_remove(&worker->node);
                                worker_unref(worker);
                                childs--;
+                               info(udev, "worker [%u] exit\n", pid);
                                break;
                        }
                }