openbsd-20030301
authorJim Rees <rees@umich.edu>
Sat, 1 Mar 2003 18:16:01 +0000 (18:16 +0000)
committerJim Rees <rees@umich.edu>
Sat, 1 Mar 2003 18:16:01 +0000 (18:16 +0000)
Use PVFS for tsleep. PZERO is obsolete.

src/afs/OBSD/osi_sleep.c

index f22922f..268ad7a 100644 (file)
@@ -90,11 +90,11 @@ int afs_osi_Wait(afs_int32 ams, struct afs_osi_WaitHandle *ahandle, int aintok)
     AFS_GUNLOCK();
     do {
        if (aintok) {
-           code = tsleep(&waitV, PCATCH | (PZERO+8), "afs_osi_Wait", timo);
+           code = tsleep(&waitV, PCATCH | PVFS, "afs_osi_Wait", timo);
            if (code)   /* if interrupted, return EINTR */
                code = EINTR;
        } else
-           tsleep(&waitV, (PZERO-3), "afs_osi_Wait", timo);
+           tsleep(&waitV, PVFS, "afs_osi_Wait", timo);
 
        /* if we were cancelled, quit now */
        if (ahandle && (ahandle->proc == NULL)) {