diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-21 01:20:18 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-21 01:20:18 +0200 |
commit | ce449f89d6e610dc57b0764e391d12259f625012 (patch) | |
tree | 95758d9106712400027b1482c7d43c1afd6ded38 /udev | |
parent | bd75fddbcbc65799bd4a684b3b6f4f04bcd637d8 (diff) |
keep the ifdef'd udevd testing/profiling hack
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udevd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/udev/udevd.c b/udev/udevd.c index b64f08b5c5..ebe3999daf 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -180,6 +180,16 @@ static void event_fork(struct udev_event *event) struct sigaction act; int err; +#if 0 + /* single process, no forking, just for testing/profiling */ + err = udev_event_execute_rules(event, rules); + if (err == 0 && !event->ignore_device && udev_get_run(event->udev)) + udev_event_execute_run(event); + info(event->udev, "seq %llu exit with %i\n", udev_device_get_seqnum(event->dev), err); + event_queue_delete(event); + return; +#endif + if (debug_trace) { event->trace = 1; fprintf(stderr, "fork %s (%llu)\n", |