diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-01-08 15:03:11 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-01-08 15:03:11 +0000 |
commit | 2446fb56753f948228e61f6de87c7b869153c29b (patch) | |
tree | e117ff7b464a1c61559001f42edbc7cda2e92795 /sys/kern/sysv_sem.c | |
parent | 675815898b9cfbdceb395bc1020b49538f55ffcc (diff) |
Convert infinite sleeps to tsleep_nsec(9).
ok bluhm@
Diffstat (limited to 'sys/kern/sysv_sem.c')
-rw-r--r-- | sys/kern/sysv_sem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index 1abfda51c5c..b2222ba92ba 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysv_sem.c,v 1.56 2019/02/04 07:04:28 anton Exp $ */ +/* $OpenBSD: sysv_sem.c,v 1.57 2020/01/08 15:03:10 mpi Exp $ */ /* $NetBSD: sysv_sem.c,v 1.26 1996/02/09 19:00:25 christos Exp $ */ /* @@ -648,8 +648,8 @@ sys_semop(struct proc *p, void *v, register_t *retval) semptr->semncnt++; DPRINTF(("semop: good night!\n")); - error = tsleep(&sema[semid], PLOCK | PCATCH, - "semwait", 0); + error = tsleep_nsec(&sema[semid], PLOCK | PCATCH, + "semwait", INFSLP); DPRINTF(("semop: good morning (error=%d)!\n", error)); suptr = NULL; /* sem_undo may have been reallocated */ |