[Pvfs2-cvs] commit by mtmoore in pvfs2/src/io/trove/trove-dbpf: dbpf-thread.c

CVS commit program cvs at parl.clemson.edu
Wed Jun 8 14:33:01 EDT 2011


Update of /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf
In directory parlweb1:/tmp/cvs-serv3865/src/io/trove/trove-dbpf

Modified Files:
      Tag: Orange-Branch
	dbpf-thread.c 
Log Message:
compiler warning cleanup


Index: dbpf-thread.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf-thread.c,v
diff -p -u -r1.42 -r1.42.10.1
--- dbpf-thread.c	11 Dec 2008 18:37:33 -0000	1.42
+++ dbpf-thread.c	8 Jun 2011 18:33:00 -0000	1.42.10.1
@@ -138,6 +138,12 @@ void *dbpf_thread_function(void *ptr)
             ret = pthread_cond_timedwait(&dbpf_op_incoming_cond,
                                          &dbpf_op_queue_mutex,
                                          &wait_time);
+            if( ret == EINVAL || ret == EPERM )
+            {
+                /* an error other than timeout occured */
+                gossip_debug(GOSSIP_TROVE_DEBUG, "%s: pthread_cond_timedwait "
+                             "returned an error\n", __func__);
+            }
             gen_mutex_unlock(&dbpf_op_queue_mutex);
         }
     }



More information about the Pvfs2-cvs mailing list