-Thu Apr 6 17:08:19 CDT 2017
+Thu Jun 1 14:43:20 EDT 2017
ms_sleep(1);
}
- } while (--sanity > 0 && ((r == -1 && xp_is_blocking(xp_errno())) || (wsh->block && wrote < bytes)));
+ if (r == -1) {
+ if (!xp_is_blocking(xp_errno())) {
+ break;
+ }
+ }
+
+ } while (--sanity > 0 && wsh->block && wrote < bytes);
//if (r<0) {
//printf("wRITE FAIL: %s\n", strerror(errno));
if (sanity < 2000) {
ms_sleep(1);
}
-
- } while (--sanity > 0 && ((r == -1 && xp_is_blocking(xp_errno())) || (wsh->block && wrote < bytes)));
-
+
+ if (r == -1) {
+ if (!xp_is_blocking(xp_errno())) {
+ break;
+ }
+ }
+
+ } while (--sanity > 0 && wsh->block && wrote < bytes);
+
//if (r<0) {
//printf("wRITE FAIL: %s\n", strerror(errno));
//}