Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Return success if no coredump module is loaded/hooked.
details: https://anonhg.NetBSD.org/src/rev/c4f1c8d36e3d
branches: trunk
changeset: 461027:c4f1c8d36e3d
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed Nov 13 15:48:36 2019 +0000
description:
Return success if no coredump module is loaded/hooked.
diffstat:
sys/kern/sys_ptrace_common.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c296b78eb121 -r c4f1c8d36e3d sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Wed Nov 13 12:55:10 2019 +0000
+++ b/sys/kern/sys_ptrace_common.c Wed Nov 13 15:48:36 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.70 2019/11/10 14:20:50 pgoyette Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.71 2019/11/13 15:48:36 pgoyette Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.70 2019/11/10 14:20:50 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.71 2019/11/13 15:48:36 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -959,7 +959,7 @@
path[len] = '\0';
}
DPRINTF(("%s: lwp=%d\n", __func__, lt->l_lid));
- MODULE_HOOK_CALL(coredump_hook, (lt, path), enosys(), error);
+ MODULE_HOOK_CALL(coredump_hook, (lt, path), 0, error);
out:
if (path)
kmem_free(path, len + 1);
Home |
Main Index |
Thread Index |
Old Index