diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-10-16 10:20:49 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-10-16 10:20:49 +0000 |
commit | 0f4fcf5d1b09ac20a5f9eb253001d28ebb0ba6e2 (patch) | |
tree | 70d0886a06e24b4eab9574760bb38510f0e83c9a /sys/net/switchctl.c | |
parent | c16224c2aec1a615ae3600936a877c2f346a0803 (diff) |
tsleep(9) -> tsleep_nsec(9)
ok cheloha@, visa@, akoshibe@
Diffstat (limited to 'sys/net/switchctl.c')
-rw-r--r-- | sys/net/switchctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/switchctl.c b/sys/net/switchctl.c index 1c3b4c7c595..af63899e89a 100644 --- a/sys/net/switchctl.c +++ b/sys/net/switchctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switchctl.c,v 1.15 2019/05/12 16:38:02 sashan Exp $ */ +/* $OpenBSD: switchctl.c,v 1.16 2019/10/16 10:20:48 mpi Exp $ */ /* * Copyright (c) 2016 Kazuya GODA <goda@openbsd.org> @@ -148,7 +148,8 @@ switchread(dev_t dev, struct uio *uio, int ioflag) goto failed; } sc->sc_swdev->swdev_waiting = 1; - error = tsleep(sc, (PZERO + 1)|PCATCH, "switchread", 0); + error = tsleep_nsec(sc, (PZERO + 1)|PCATCH, "switchread", + INFSLP); if (error != 0) goto failed; /* sc might be deleted while sleeping */ |