diff options
| author | Sean Eric Fagan <sef@FreeBSD.org> | 1997-12-06 04:11:14 +0000 |
|---|---|---|
| committer | Sean Eric Fagan <sef@FreeBSD.org> | 1997-12-06 04:11:14 +0000 |
| commit | 2a024a2b050c695d6e91e22374806cc3efaa60b2 (patch) | |
| tree | 6532da7d9d1ad16542fbcdf34502b9d8ad15eb84 /sys/kern/kern_exec.c | |
| parent | ceb0cf87e893efc7331317d58fa5ddeadd8fa2a0 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index bdad7d956542..4d4f05acb516 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_exec.c,v 1.67 1997/10/15 18:28:34 guido Exp $ + * $Id: kern_exec.c,v 1.68 1997/11/06 19:29:08 phk Exp $ */ #include <sys/param.h> @@ -40,6 +40,7 @@ #include <sys/imgact_elf.h> #include <sys/wait.h> #include <sys/proc.h> +#include <sys/pioctl.h> #include <sys/malloc.h> #include <sys/namei.h> #include <sys/sysent.h> @@ -338,6 +339,8 @@ interpret: * If tracing the process, trap to debugger so breakpoints * can be set before the program executes. */ + STOPEVENT(p, S_EXEC, 0); + if (p->p_flag & P_TRACED) psignal(p, SIGTRAP); |
