ADHD: Daemon for watching A/V device events
Details
o Adds infrastructure to handle different threads w/ automatic startup.
Threads are declared with THREAD_DESCRIPTOR, and the system
infrastructure handles all the startup and management.
o Adds signal handling infrastructure; restarts threads on SIGHUP.
o Added command line argument processing.
Note that, at least, Goobuntu has a defect in getopt_long().
--option <optional-argument>
will yield a SEGV because 'optarg' is NULL.
--option=<optional-argument>
works, however.
Testing
Execute 'make' in the 'adhd' directory, and the project builds.
Execute 'gavd', and note the message output.
BUG=chromium-os:19558
TEST=See above
Change-Id: I1033af5690fac0052c1892a81e296b3d2538ae88
Signed-off-by: Taylor Hutt <thutt@chromium.org>
39 files changed