/[monit]/monit/protocols/mysql.c
ViewVC logotype

Diff of /monit/protocols/mysql.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by martinp, Mon Oct 31 22:43:33 2005 UTC revision 1.6 by hauk, Tue Nov 1 00:28:09 2005 UTC
# Line 104  int check_mysql(Socket_T s) { Line 104  int check_mysql(Socket_T s) {
104    
105    ASSERT(s);    ASSERT(s);
106    
107    if(socket_readln(s, (char *)buf, sizeof(buf)) <= 0) {    if(!socket_readln(s, (char *)buf, sizeof(buf))) {
108      log("MYSQL: error receiving greeting -- %s\n", STRERROR);      log("MYSQL: error receiving greeting -- %s\n", STRERROR);
109      return FALSE;      return FALSE;
110    }    }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26