Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern __predict_false() fork1() failing.



details:   https://anonhg.NetBSD.org/src/rev/e0daf140c63e
branches:  trunk
changeset: 485918:e0daf140c63e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 08 19:59:48 2000 +0000

description:
__predict_false() fork1() failing.

diffstat:

 sys/kern/kern_kthread.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 222f95f2ede6 -r e0daf140c63e sys/kern/kern_kthread.c
--- a/sys/kern/kern_kthread.c   Mon May 08 19:59:21 2000 +0000
+++ b/sys/kern/kern_kthread.c   Mon May 08 19:59:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_kthread.c,v 1.8 1999/07/06 21:44:10 thorpej Exp $ */
+/*     $NetBSD: kern_kthread.c,v 1.9 2000/05/08 19:59:48 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
        /* First, create the new process. */
        error = fork1(&proc0, FORK_SHAREVM | FORK_SHARECWD | FORK_SHAREFILES |
            FORK_SHARESIGS, SIGCHLD, NULL, 0, NULL, &p2);
-       if (error)
+       if (__predict_false(error != 0))
                return (error);
 
        /*



Home | Main Index | Thread Index | Old Index