summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2020-11-22 13:39:14 -0800
committerDavid Anderson <dvander@google.com>2020-11-23 04:14:08 +0000
commitff118cec5c4428d16882521c246da03ccea9534b (patch)
tree712c27299c0176cda54451bef8a12f66e4550ec7 /trusty/coverage/coverage_test.cpp
parent5aa05fce2825dac06f318596a8a96196c0d33615 (diff)
libsnapshot: Add a way to detach snapuserd.
Currently, when init unlinks /dev/socket/snapuserd, the daemon currently polling the socket will fail in accept4(). This works because the process won't exit until all threads have terminated, but it's confusing, and it creates log spam. Instead, add an explicit "detach" message so that snapuserd will stop listening for new connections and will immediately join on remaining threads. This way snapuserd will gracefully exit when all threads are complete, and we're guaranteed no new threads will be created. This will only be used for first-stage instances of snapuserd. Bug: 173476209 Test: full OTA with VABC, no accept4() errors Change-Id: Ibeffa4a35043ed43a70166eeee86204e2b3d03aa
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions