From ef553066b06692ad3521b2078fef8a7564e6ef24 Mon Sep 17 00:00:00 2001 From: jihoonl Date: Mon, 11 Jan 2010 10:55:36 +0000 Subject: [PATCH] removed error msg --- Robust/src/Runtime/DSTM/interface_recovery/sockpool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Robust/src/Runtime/DSTM/interface_recovery/sockpool.c b/Robust/src/Runtime/DSTM/interface_recovery/sockpool.c index 6c5d7452..4508ef04 100644 --- a/Robust/src/Runtime/DSTM/interface_recovery/sockpool.c +++ b/Robust/src/Runtime/DSTM/interface_recovery/sockpool.c @@ -61,7 +61,7 @@ int createNewSocket(unsigned int mid) { int sd; int flag=1; if((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { - fprintf(stderr,"%s() Error: In creating socket at %s, %d\n", __func__, __FILE__, __LINE__); +// fprintf(stderr,"%s() Error: In creating socket at %s, %d\n", __func__, __FILE__, __LINE__); return -1; } setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *) &flag, sizeof(flag)); @@ -71,8 +71,8 @@ int createNewSocket(unsigned int mid) { remoteAddr.sin_port = htons(LISTEN_PORT); remoteAddr.sin_addr.s_addr = htonl(mid); if(connect(sd, (struct sockaddr *)&remoteAddr, sizeof(remoteAddr)) < 0) { - perror("socket connect: "); - fprintf(stderr,"%s(): Error %d connecting to %s:%d\n", __func__, errno, inet_ntoa(remoteAddr.sin_addr), LISTEN_PORT); +// perror("socket connect: "); +// fprintf(stderr,"%s(): Error %d connecting to %s:%d\n", __func__, errno, inet_ntoa(remoteAddr.sin_addr), LISTEN_PORT); close(sd); return -1; } -- 2.34.1