diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-06 22:21:39 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-06 22:21:39 -0400 |
commit | 5abc996a88e454706234656986506aba58b530ab (patch) | |
tree | 3820b078e10e096a7e295bc32d52c2c088bc21d6 /netlib.c | |
parent | 7fa51189de249e610a1bc1ce7088964670476d42 (diff) | |
download | gpsd-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 @*/ } |