Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libkvm Don't treat failure to map the file as fatal.
details: https://anonhg.NetBSD.org/src/rev/19fea2607678
branches: trunk
changeset: 1009608:19fea2607678
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 28 14:27:41 2020 +0000
description:
Don't treat failure to map the file as fatal.
diffstat:
lib/libkvm/kvm.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r fd370448faad -r 19fea2607678 lib/libkvm/kvm.c
--- a/lib/libkvm/kvm.c Tue Apr 28 13:43:45 2020 +0000
+++ b/lib/libkvm/kvm.c Tue Apr 28 14:27:41 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm.c,v 1.107 2020/04/28 00:19:23 christos Exp $ */
+/* $NetBSD: kvm.c,v 1.108 2020/04/28 14:27:41 christos Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
-__RCSID("$NetBSD: kvm.c,v 1.107 2020/04/28 00:19:23 christos Exp $");
+__RCSID("$NetBSD: kvm.c,v 1.108 2020/04/28 14:27:41 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -399,8 +399,6 @@
kd->dump_size = (size_t)st.st_size;
kd->dump_mem = mmap(NULL, kd->dump_size, PROT_READ|PROT_WRITE,
MAP_FILE|MAP_PRIVATE, kd->pmfd, 0);
- if (kd->dump_mem == MAP_FAILED)
- goto failed;
}
return (kd);
failed:
Home |
Main Index |
Thread Index |
Old Index