Apply by doing:
cd /usr/src
patch -p0 < 021_fdalloc2.patch
And then rebuild your kernel.
Index: sys/kern/kern_exec.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_exec.c,v
retrieving revision 1.57.2.1
diff -u -r1.57.2.1 kern_exec.c
--- sys/kern/kern_exec.c 23 Jan 2002 03:10:01 -0000 1.57.2.1
+++ sys/kern/kern_exec.c 8 May 2002 20:19:48 -0000
@@ -532,9 +532,6 @@
* allocated. We do not want userland to accidentally
* allocate descriptors in this range which has implied
* meaning to libc.
- *
- * XXX - Shouldn't the exec fail if we can't allocate
- * resources here?
*/
if (fp == NULL) {
short flags = FREAD | (i == 0 ? 0 : FWRITE);
@@ -542,7 +539,7 @@
int indx;