chiark / gitweb /
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 e7a0c98..d63fa7f 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;
                        }
                }