[PVFS2-CVS] commit by neill in pvfs2/src/io/bmi/bmi_tcp: bmi-tcp.c

CVS commit program cvs at parl.clemson.edu
Mon Jul 12 18:12:41 EDT 2004


Update of /projects/cvsroot/pvfs2/src/io/bmi/bmi_tcp
In directory parlweb:/tmp/cvs-serv19097/src/io/bmi/bmi_tcp

Modified Files:
	bmi-tcp.c 
Log Message:
- add some error handling; null out ptrs that are no longer in use
  (fixes several crash bugs found in the job expiration case); add
  some sanity checks, etc
- make server continue processing, rather than abort on
  BMI_testcontext errors (these are recoverable)


Index: bmi-tcp.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi_tcp/bmi-tcp.c,v
diff -p -u -r1.83 -r1.84
--- bmi-tcp.c	8 Jul 2004 16:17:09 -0000	1.83
+++ bmi-tcp.c	12 Jul 2004 21:12:41 -0000	1.84
@@ -3033,7 +3033,9 @@ static int BMI_tcp_post_send_generic(bmi
 	&cur_index_complete, BMI_SEND, my_header.enc_hdr, &env_amt_complete);
     if (ret < 0)
     {
-	gossip_lerr("Error: payload_progress: %s\n", strerror(-ret));
+        char buf[64] = {0};
+        PVFS_strerror_r(-ret, buf, 64);
+	gossip_lerr("Error: payload_progress: %s\n", buf);
 	tcp_forget_addr(dest, 0, ret);
 	return (ret);
     }



More information about the PVFS2-CVS mailing list