aboutsummaryrefslogtreecommitdiffstats
path: root/seti.c
diff options
context:
space:
mode:
authorreinelt <>2001-09-12 05:37:22 +0000
committerreinelt <>2001-09-12 05:37:22 +0000
commitfdfa63e281bfeb119f53db84810b705b9e64a1c2 (patch)
treedfa02a8502b1be3dd801d0a2a1e872dfea99baac /seti.c
parent5ec29297c395576455f2f64fe0c26b51b0f323c6 (diff)
downloadlcd4linux-fdfa63e281bfeb119f53db84810b705b9e64a1c2.tar.gz
[lcd4linux @ 2001-09-12 05:37:22 by reinelt]
fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's improved socket debugging
Diffstat (limited to 'seti.c')
-rw-r--r--seti.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/seti.c b/seti.c
index 8832bfc..03d0943 100644
--- a/seti.c
+++ b/seti.c
@@ -1,4 +1,4 @@
-/* $Id: seti.c,v 1.5 2001/08/05 17:13:29 reinelt Exp $
+/* $Id: seti.c,v 1.6 2001/09/12 05:37:22 reinelt Exp $
*
* seti@home specific functions
*
@@ -20,6 +20,12 @@
*
*
* $Log: seti.c,v $
+ * Revision 1.6 2001/09/12 05:37:22 reinelt
+ *
+ * fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's
+ *
+ * improved socket debugging
+ *
* Revision 1.5 2001/08/05 17:13:29 reinelt
*
* cleaned up inlude of sys/time.h and time.h
@@ -112,9 +118,12 @@ int Seti (double *perc, double *cput)
if (read (fd, &buffer, sizeof(buffer)-1)==-1) {
error ("read(%s) failed: %s", fn, strerror(errno));
+ close (fd);
fd=-1;
return -1;
}
+
+ close (fd);
p=strstr(buffer, "prog=");
if (p==NULL) {