diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2005-08-19 05:59:15 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2005-08-19 05:59:15 +0000 |
commit | f74aa265dcc76f58fbf11b3a76f3959d11717831 (patch) | |
tree | 9ae7fbffbe016fb1f6c07b6dc29c3a842c92e82b | |
parent | cf94c059381e76e00134696991b6aa0d04e01339 (diff) | |
download | gpsd-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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 */ |