Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern kill the topdown flag only if we succeed.
details: https://anonhg.NetBSD.org/src/rev/30b01be9c15b
branches: trunk
changeset: 326335:30b01be9c15b
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 25 23:58:41 2014 +0000
description:
kill the topdown flag only if we succeed.
diffstat:
sys/kern/exec_aout.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 1ce7fceff6a4 -r 30b01be9c15b sys/kern/exec_aout.c
--- a/sys/kern/exec_aout.c Sat Jan 25 23:58:10 2014 +0000
+++ b/sys/kern/exec_aout.c Sat Jan 25 23:58:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_aout.c,v 1.37 2014/01/25 05:15:05 christos Exp $ */
+/* $NetBSD: exec_aout.c,v 1.38 2014/01/25 23:58:41 christos Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_aout.c,v 1.37 2014/01/25 05:15:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_aout.c,v 1.38 2014/01/25 23:58:41 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_coredump.h"
@@ -116,8 +116,6 @@
midmag = mid << 16 | magic;
- epp->ep_flags &= ~EXEC_TOPDOWN_VM;
-
switch (midmag) {
case (MID_MACHINE << 16) | ZMAGIC:
error = exec_aout_prep_zmagic(l, epp);
@@ -134,6 +132,8 @@
if (error)
kill_vmcmds(&epp->ep_vmcmds);
+ else
+ epp->ep_flags &= ~EXEC_TOPDOWN_VM;
return error;
}
Home |
Main Index |
Thread Index |
Old Index