Catch signals in clock_sleep, so that sleeping processes can be interupted.
This commit is contained in:
parent
9510307938
commit
780bd92b51
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mach_clock.c,v 1.10 2003/12/09 11:29:01 manu Exp $ */
|
||||
/* $NetBSD: mach_clock.c,v 1.11 2003/12/09 22:04:25 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mach_clock.c,v 1.10 2003/12/09 11:29:01 manu Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mach_clock.c,v 1.11 2003/12/09 22:04:25 manu Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -89,7 +89,7 @@ mach_sys_clock_sleep_trap(l, v, retval)
|
||||
ticks = tts.tv_sec * hz;
|
||||
ticks += (tts.tv_nsec * hz) / 1000000000L;
|
||||
|
||||
tsleep(&dontcare, PZERO, "sleep", ticks);
|
||||
tsleep(&dontcare, PZERO|PCATCH, "sleep", ticks);
|
||||
|
||||
if (SCARG(uap, wakeup_time) != NULL) {
|
||||
microtime(&now);
|
||||
|
Loading…
Reference in New Issue
Block a user