libchipcard64 should avoid polling (...every 10 seconds) by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libchipcard (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
On default Ubuntu installs a daemon named 'chipcard64' is run, which sits in the background and polls every 10 seconds by attempting to 'accept()' a socket:
$ sudo strace -r -p 3328
0.000000 select(6, [5], NULL, NULL, {9, 682247}) = 0 (Timeout)
9.683726 accept(5, 0xa06f8a8, [110]) = -1 EAGAIN (Resource temporarily unavailable)
0.000226 select(6, [5], NULL, NULL, {10, 0}) = 0 (Timeout)
10.010503 accept(5, 0xa06f8a8, [110]) = -1 EAGAIN (Resource temporarily unavailable)
0.000152 select(6, [5], NULL, NULL, {10, 0}) = 0 (Timeout)
10.010469 accept(5, 0xa06f8a8, [110]) = -1 EAGAIN (Resource temporarily unavailable)
0.000153 select(6, [5], NULL, NULL, {10, 0}) = 0 (Timeout)
...
Ideally chipcard64 should be switched internally to an asynchronous model in order to avoid waking up every 10 seconds in order to poll. In additional, the startup mechanism should ideally be altered to be load the daemon dynamically via udev when suitable interrupt sources and events are available and to unload it again upon reader or device removal.
The daemon should definitely *not* be running if there is no suitable card reader installed on the machine in question.
summary: |
- chipcard64 should using polling (once every 10 seconds) + chipcard64 should avoid polling (...every 10 seconds) |
Changed in libchipcard (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Hi Paul,
Unfortunately you didn't specify any versioning information. What
version of package libchipcard-tools is installed on your system?
Regards
Micha