diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-15 15:39:36 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-17 21:27:27 +0530 |
commit | a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f (patch) | |
tree | 9e473cf3e56f21048704ac4674afe6718bda1ffe /gweb/gresolv.c | |
parent | 46c06a384067f29cdd9f1550278cda29798db7b2 (diff) | |
download | connman-a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f.tar.gz connman-a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f.tar.bz2 connman-a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f.zip |
[SPIN] Fix the connman bugs.
- Fixed NTP service's DNS resolving failure in Hive project.
- Do not turn "wlan0" interface down in cleanup_devices().
- Set resource limits "RLIMIT_NOFILE" for a process.
- After appending a file, fflush and fsync all modified in-core data of the file.
Change-Id: I2767b3302d6204d066fe2075027828ff209d0ee0
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'gweb/gresolv.c')
-rwxr-xr-x | gweb/gresolv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c index 5cf7a9a6..93f156ea 100755 --- a/gweb/gresolv.c +++ b/gweb/gresolv.c @@ -948,10 +948,12 @@ bool g_resolv_add_nameserver(GResolv *resolv, const char *address, nameserver->flags = flags; nameserver->resolv = resolv; + debug(resolv, ""); if (connect_udp_channel(nameserver) < 0) { free_nameserver(nameserver); return false; } + debug(resolv, ""); resolv->nameserver_list = g_list_append(resolv->nameserver_list, nameserver); @@ -1053,6 +1055,8 @@ guint g_resolv_lookup_hostname(GResolv *resolv, const char *hostname, lookup->result_data = user_data; lookup->id = resolv->next_lookup_id++; + debug(resolv, ""); + if (resolv->result_family != AF_INET6) { if (add_query(lookup, hostname, ns_t_a)) { g_free(lookup); @@ -1060,6 +1064,8 @@ guint g_resolv_lookup_hostname(GResolv *resolv, const char *hostname, } } + debug(resolv, ""); + if (resolv->result_family != AF_INET) { if (add_query(lookup, hostname, ns_t_aaaa)) { if (resolv->result_family != AF_INET6) { @@ -1073,6 +1079,8 @@ guint g_resolv_lookup_hostname(GResolv *resolv, const char *hostname, } } + debug(resolv, ""); + g_queue_push_tail(resolv->lookup_queue, lookup); debug(resolv, "lookup %p id %d", lookup, lookup->id); |