Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/sysctl.3,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/sysctl.3,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.74.2.9 retrieving revision 1.74.2.10 diff -u -p -r1.74.2.9 -r1.74.2.10 --- src/lib/libc/gen/sysctl.3 2002/10/18 02:16:04 1.74.2.9 +++ src/lib/libc/gen/sysctl.3 2002/11/11 22:22:14 1.74.2.10 @@ -1,4 +1,4 @@ -.\" $NetBSD: sysctl.3,v 1.74.2.9 2002/10/18 02:16:04 nathanw Exp $ +.\" $NetBSD: sysctl.3,v 1.74.2.10 2002/11/11 22:22:14 nathanw Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -1273,6 +1273,8 @@ points to the current process, or the PI .Bl -column "USER_COLL_WEIGHTS_MAXXXX" "integerXXX" "yes" -offset indent .It Sy Pa Third level name Type Changeable .It PROC\_PID\_CORENAME string yes +.It PROC\_STOPEXEC int yes +.It PROC\_STOPFORK int yes .It PROC\_PID\_LIMIT node not applicable .El .Bl -tag -width "123456" @@ -1330,6 +1332,34 @@ The maximum number of open files for thi The fifth level name is one of PROC_PID_LIMIT_TYPE_SOFT or PROC_PID_LIMIT_TYPE_HARD, to select respectively the soft or hard limit. Both are of type integer. +.It Li PROC_STOPEXEC +If non zero, the process will be stopped on next +.Xr exec 2 +call. +The process created by +.Xr exec 2 +is created in the SSTOP state and is never scheduled for running +before being stopped. +This feature helps attaching a process with a debugger such as +.Xr gdb 1 +before it had the opportunity to actually do anything. +.Pp +This value is inherited by the process's children. +.It Li PROC_STOPFORK +If non zero, the process' children will be stopped after +.Xr fork 2 +calls. +The children is created in the SSTOP state and is never scheduled +for running before being stopped. +This feature helps attaching a process with a debugger such as +.Xr gdb 1 +before it had the opportunity to actually do anything. +.Pp +This value is inherited by the process's children, and it also +apply to emulation specific system calls that fork a new process, such as +.Fn sproc +or +.Fn clone . .El .Sh CTL_USER The string and integer information available for the CTL_USER level