Subject: CVS commit: basesrc/sbin/sysctl
To: None <source-changes@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 11/07/2002 02:22:31
Module Name:	basesrc
Committed By:	manu
Date:		Thu Nov  7 00:22:31 UTC 2002

Modified Files:
	basesrc/lib/libc/gen: sysctl.3
	basesrc/sbin/sysctl: sysctl.8
	syssrc/sys/kern: kern_exec.c kern_fork.c kern_sysctl.c
	syssrc/sys/sys: proc.h sysctl.h

Log Message:
Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexec
that can be used to block a process after fork(2) or exec(2) calls. The
new process is created in the SSTOP state and is never scheduled for running.

This feature is designed so that it is esay to attach the process using gdb
before it has done anything.

It works also with sproc, kthread_create, clone...


To generate a diff of this commit:
cvs rdiff -r1.99 -r1.100 basesrc/lib/libc/gen/sysctl.3
cvs rdiff -r1.81 -r1.82 basesrc/sbin/sysctl/sysctl.8
cvs rdiff -r1.161 -r1.162 syssrc/sys/kern/kern_exec.c
cvs rdiff -r1.96 -r1.97 syssrc/sys/kern/kern_fork.c
cvs rdiff -r1.114 -r1.115 syssrc/sys/kern/kern_sysctl.c
cvs rdiff -r1.147 -r1.148 syssrc/sys/sys/proc.h
cvs rdiff -r1.78 -r1.79 syssrc/sys/sys/sysctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.