char pbuffer[1028];
int fd = -1;
afs_int32 epoch = 0;
- afs_int32 pass;
-
+#if !defined(AFS_PTHREAD_ENV)
+ afs_int32 pass = 0;
+#endif
/* send the file back to the requester */
dbase = ubik_dbase;
close(fd);
goto failed_locked;
}
- pass = 0;
memcpy(&ubik_dbase->version, &tversion, sizeof(struct ubik_version));
UBIK_VERSION_UNLOCK;
while (length > 0) {
#if !defined(AFS_PTHREAD_ENV)
if (pass % 4 == 0)
IOMGR_Poll();
+ pass++;
#endif
code = rx_Read(rxcall, tbuffer, tlen);
if (code != tlen) {
goto failed;
}
code = write(fd, tbuffer, tlen);
- pass++;
if (code != tlen) {
ViceLog(0, ("write failed tlen=%d, error=%d\n", tlen, code));
code = UIOERROR;