when select and poll return with error, ignore EINTR and EAGAIN.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 20 Oct 2010 16:00:19 +0000 (11:00 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 20 Oct 2010 16:00:19 +0000 (11:00 -0500)
src/arch/net/charmrun/charmrun.c

index d244c148a0571a8ce479ca5ff6fa10810e73961c..e2d42e04b4af5c2d52a7dfe3200a8ed87ded762f 100644 (file)
@@ -1980,6 +1980,7 @@ void req_poll()
   if (status==0) return;/*Nothing to do-- timeout*/
 
   if (status<0){ 
+               if (errno == EINTR || errno == EAGAIN) return;
                fflush(stdout);
                fflush(stderr);
                socket_error_in_poll(1359,"Node program terminated unexpectedly!\n");