summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2013-10-25 01:30:12 -0700
committerGary E. Miller <gem@rellim.com>2013-10-25 01:30:12 -0700
commit8666f938fbf7d4e366f5ed539d3a736d7245dbea (patch)
treee99f7062b9955935cf9a4561a733c133c5c9facc /netlib.c
parent9be183f7ed0b1b7cb2366ce57e2eb323cc8fdf8d (diff)
downloadgpsd-8666f938fbf7d4e366f5ed539d3a736d7245dbea.tar.gz
Add some more error logging to chrony socket opening
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib.c b/netlib.c
index 7cd3bdff..4be2660a 100644
--- a/netlib.c
+++ b/netlib.c
@@ -175,7 +175,7 @@ socket_t netlib_localsocket(const char *sockfile, int socktype)
/*@-unrecog@*/
if (connect(sock, (struct sockaddr *)&saddr, SUN_LEN(&saddr)) < 0) {
(void)close(sock);
- return -1;
+ return -2;
}
/*@+unrecog@*/