Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Don't require a file if CLEAR is set [did not work ...
details: https://anonhg.NetBSD.org/src/rev/29ebd9ea0714
branches: trunk
changeset: 545161:29ebd9ea0714
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 03 18:54:16 2003 +0000
description:
Don't require a file if CLEAR is set [did not work before because we
could have the descend flag too]
diffstat:
sys/kern/kern_ktrace.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5b9a9d41671e -r 29ebd9ea0714 sys/kern/kern_ktrace.c
--- a/sys/kern/kern_ktrace.c Thu Apr 03 18:16:45 2003 +0000
+++ b/sys/kern/kern_ktrace.c Thu Apr 03 18:54:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ktrace.c,v 1.68 2003/02/23 14:37:34 pk Exp $ */
+/* $NetBSD: kern_ktrace.c,v 1.69 2003/04/03 18:54:16 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.68 2003/02/23 14:37:34 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.69 2003/04/03 18:54:16 christos Exp $");
#include "opt_ktrace.h"
#include "opt_compat_mach.h"
@@ -536,7 +536,7 @@
ops = KTROP(ops) | (ops & KTRFLAG_DESCEND);
curp->p_traceflag |= KTRFAC_ACTIVE;
- if (ops != KTROP_CLEAR) {
+ if ((ops & KTROP_CLEAR) == 0) {
/*
* an operation which requires a file argument.
*/
Home |
Main Index |
Thread Index |
Old Index