Module Name: src Committed By: sborrill Date: Mon Feb 3 11:56:20 UTC 2014
Modified Files: src/lib/libc/gen [netbsd-6-0]: posix_spawn.3 posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_init.3 posix_spawn_fileactions.c src/sys/compat/netbsd32 [netbsd-6-0]: netbsd32_execve.c src/sys/kern [netbsd-6-0]: kern_exec.c Log Message: Pull up the following revisions(s) (requested by martin in ticket #1023): lib/libc/gen/posix_spawn.3: revision 1.5 lib/libc/gen/posix_spawn_file_actions_addopen.3: revision 1.4 lib/libc/gen/posix_spawn_file_actions_init.3: revision 1.4 lib/libc/gen/posix_spawn_fileactions.c: revision 1.3 sys/compat/netbsd32/netbsd32_execve.c: revision 1.38 sys/kern/kern_exec.c: revision 1.373 Limit the amount of kernel memory a posix_spawn syscall can use (for handling the file action list) by limiting the maximum number of file actions to twice the current file descriptor limit. Fix a few bugs in the support functions and document the new limit. From Maxime Villard. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.2.6.1 src/lib/libc/gen/posix_spawn.3 cvs rdiff -u -r1.1 -r1.1.6.1 \ src/lib/libc/gen/posix_spawn_file_actions_addopen.3 \ src/lib/libc/gen/posix_spawn_file_actions_init.3 cvs rdiff -u -r1.1.2.1 -r1.1.2.1.4.1 \ src/lib/libc/gen/posix_spawn_fileactions.c cvs rdiff -u -r1.33.2.1.4.1 -r1.33.2.1.4.2 \ src/sys/compat/netbsd32/netbsd32_execve.c cvs rdiff -u -r1.339.2.5.4.1 -r1.339.2.5.4.2 src/sys/kern/kern_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.