Add a comment clarifying that in the succesful case the function

returns from the middle of the loop.
This commit is contained in:
pooka 2007-10-02 12:01:17 +00:00
parent 631240c898
commit 87319696e5
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_exec.c,v 1.248 2007/09/20 20:51:38 christos Exp $ */
/* $NetBSD: kern_exec.c,v 1.249 2007/10/02 12:01:17 pooka Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.248 2007/09/20 20:51:38 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.249 2007/10/02 12:01:17 pooka Exp $");
#include "opt_ktrace.h"
#include "opt_syscall_debug.h"
@ -350,6 +350,8 @@ check_exec(struct lwp *l, struct exec_package *epp)
return error;
}
/* not found, error */
/*
* free any vmspace-creation commands,
* and release their references