From 4340dc126ba0920dc93c0e74d48cfee769547399 Mon Sep 17 00:00:00 2001 From: reinelt Date: Wed, 12 Sep 2001 05:37:22 +0000 Subject: [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 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@147 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- seti.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'seti.c') 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) { -- cgit v1.2.3