summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-06 22:21:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-06 22:21:39 -0400
commit5abc996a88e454706234656986506aba58b530ab (patch)
tree3820b078e10e096a7e295bc32d52c2c088bc21d6 /netlib.c
parent7fa51189de249e610a1bc1ce7088964670476d42 (diff)
downloadgpsd-5abc996a88e454706234656986506aba58b530ab.tar.gz
Add all our info on the spin bug to TODO, and instrument all opens/closes.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/netlib.c b/netlib.c
index 1571a53d..8a5b6abf 100644
--- a/netlib.c
+++ b/netlib.c
@@ -95,8 +95,10 @@ socket_t netlib_connectsock(int af, const char *host, const char *service, const
break;
}
- if (s > 0)
+ if (s > 0) {
+ gpsd_report(LOG_SPIN, "close(%d) in netlib_connectsock()\n", s);
(void)close(s);
+ }
}
/*@+type@*/
#ifndef S_SPLINT_S
@@ -117,6 +119,8 @@ socket_t netlib_connectsock(int af, const char *host, const char *service, const
if (type == SOCK_STREAM)
setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *)&one, sizeof one);
#endif
+
+ gpsd_report(LOG_SPIN, "netlib_connectsock() returns socket on fd %d\n", s);
return s;
/*@ +type +mustfreefresh @*/
}