Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Remember the allocated ptimer object...
details: https://anonhg.NetBSD.org/src/rev/781c75c990f4
branches: trunk
changeset: 543372:781c75c990f4
user: enami <enami%NetBSD.org@localhost>
date: Sun Feb 23 23:36:35 2003 +0000
description:
Remember the allocated ptimer object so that it won't leak.
diffstat:
sys/compat/linux/common/linux_misc_notalpha.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e92c30fb4e58 -r 781c75c990f4 sys/compat/linux/common/linux_misc_notalpha.c
--- a/sys/compat/linux/common/linux_misc_notalpha.c Sun Feb 23 23:34:21 2003 +0000
+++ b/sys/compat/linux/common/linux_misc_notalpha.c Sun Feb 23 23:36:35 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc_notalpha.c,v 1.65 2003/02/19 11:23:54 jdolecek Exp $ */
+/* $NetBSD: linux_misc_notalpha.c,v 1.66 2003/02/23 23:36:35 enami Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc_notalpha.c,v 1.65 2003/02/19 11:23:54 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc_notalpha.c,v 1.66 2003/02/23 23:36:35 enami Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -150,6 +150,7 @@
ptp->pt_type = CLOCK_REALTIME;
ptp->pt_entry = CLOCK_REALTIME;
callout_init(&ptp->pt_ch);
+ p->p_timers->pts_timers[ITIMER_REAL] = ptp;
}
if (timerisset(&it.it_value)) {
Home |
Main Index |
Thread Index |
Old Index