summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2005-08-19 05:59:15 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2005-08-19 05:59:15 +0000
commitf74aa265dcc76f58fbf11b3a76f3959d11717831 (patch)
tree9ae7fbffbe016fb1f6c07b6dc29c3a842c92e82b
parentcf94c059381e76e00134696991b6aa0d04e01339 (diff)
downloadgpsd-f74aa265dcc76f58fbf11b3a76f3959d11717831.tar.gz
cgps shouldn't be listening for inbound connections.
Taking this listen() out makes it work on openbsd. If it breaks for others I'll wrap it in a conditional, but listen() seems to be the wrong thing to do for a program like this.
-rw-r--r--cgps.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cgps.c b/cgps.c
index 8a45404f..dde4f670 100644
--- a/cgps.c
+++ b/cgps.c
@@ -370,9 +370,6 @@ int main(int argc, char *argv[])
/* Request "w+x" data from gpsd. */
(void)gps_query(gpsdata, "w+x\n");
- /* accept connections */
- (void)listen(gpsdata->gps_fd, 5);
-
for (;;) { /* heart of the client */
/* watch to see when it has input */