Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern enable SI_TIMER notification.
details: https://anonhg.NetBSD.org/src/rev/54236954485b
branches: trunk
changeset: 551912:54236954485b
user: christos <christos%NetBSD.org@localhost>
date: Sat Sep 13 22:39:18 2003 +0000
description:
enable SI_TIMER notification.
diffstat:
sys/kern/kern_time.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r de9a5e90be46 -r 54236954485b sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Sat Sep 13 22:35:13 2003 +0000
+++ b/sys/kern/kern_time.c Sat Sep 13 22:39:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.74 2003/09/09 15:16:30 cl Exp $ */
+/* $NetBSD: kern_time.c,v 1.75 2003/09/13 22:39:18 christos Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.74 2003/09/09 15:16:30 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.75 2003/09/13 22:39:18 christos Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@@ -1217,9 +1217,14 @@
if (sigismember(&p->p_sigctx.ps_siglist, pt->pt_ev.sigev_signo))
pt->pt_overruns++;
else {
+ ksiginfo_t ksi;
+ (void)memset(&ksi, 0, sizeof(ksi));
+ ksi.ksi_signo = pt->pt_ev.sigev_signo;
+ ksi.ksi_code = SI_TIMER;
+ ksi.ksi_sigval = pt->pt_ev.sigev_value;
pt->pt_poverruns = pt->pt_overruns;
pt->pt_overruns = 0;
- psignal(p, pt->pt_ev.sigev_signo);
+ kpsignal(p, &ksi, NULL);
}
} else if (pt->pt_ev.sigev_notify == SIGEV_SA && (p->p_flag & P_SA)) {
/* Cause the process to generate an upcall when it returns. */
Home |
Main Index |
Thread Index |
Old Index