commit | baf62997b598ac38a99fd30419ccf7c109ffb3bc | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Mar 01 20:29:39 2013 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Sat Mar 02 12:46:34 2013 +0900 |
tree | 520f17db43ccd3e559c016747a66ea3483602cca | |
parent | d6ef91bef28020ec019a64561e8fb5e353e42980 [diff] |
Make clatd a bit more robust when started by netd. 1. When started from netd, DNS lookups (used to detect the NAT64 prefix) fail because ANDROID_DNS_MODE=local. Unset it. 2. Only add the SIGTERM handler just before starting the event loop. Otherwise, if clatd hangs before the event loop is started (e.g., when #1 happens), it can't be stopped. While I'm at it, add a couple of logging statements. Change-Id: Ie24b37e34b729ce6cd3769b5d64348f2c1b9627d