Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/mach Catch signals in clock_sleep, so that sleepi...
details: https://anonhg.NetBSD.org/src/rev/876d3738e7c9
branches: trunk
changeset: 556216:876d3738e7c9
user: manu <manu%NetBSD.org@localhost>
date: Tue Dec 09 22:04:25 2003 +0000
description:
Catch signals in clock_sleep, so that sleeping processes can be interupted.
diffstat:
sys/compat/mach/mach_clock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d4ec6140b842 -r 876d3738e7c9 sys/compat/mach/mach_clock.c
--- a/sys/compat/mach/mach_clock.c Tue Dec 09 21:40:54 2003 +0000
+++ b/sys/compat/mach/mach_clock.c Tue Dec 09 22:04:25 2003 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index