diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-18 09:00:25 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-18 09:00:25 +0000 |
commit | ca58171e0ae6d3d2275d7986b729fbc8cd3a06f5 (patch) | |
tree | f66e0a617552dc1524a861b6dc40e54dd32eab04 | |
parent | 62208bdf630f018d5e4f6844f3a434f2a745b855 (diff) |
trace_req is a nop.
rename stop -> proc_stop (stop is not a good function name).
-rw-r--r-- | sys/kern/kern_sig.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index cc9fdc60fe3..b884e6a04ae 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.43 2001/05/16 05:07:52 millert Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.44 2001/06/18 09:00:24 art Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -84,7 +84,7 @@ int filt_signal(struct knote *kn, long hint); struct filterops sig_filtops = { 0, filt_sigattach, filt_sigdetach, filt_signal }; -void stop __P((struct proc *p)); +void proc_stop __P((struct proc *p)); void killproc __P((struct proc *, char *)); int cansignal __P((struct proc *, struct pcred *, struct proc *, int)); @@ -864,7 +864,7 @@ psignal(p, signum) p->p_xstat = signum; if ((p->p_pptr->p_flag & P_NOCLDSTOP) == 0) psignal(p->p_pptr, SIGCHLD); - stop(p); + proc_stop(p); goto out; } /* @@ -1006,10 +1006,8 @@ issignal(p) } else { /* ptrace debugging */ psignal(p->p_pptr, SIGCHLD); - do { - stop(p); - mi_switch(); - } while (!trace_req(p) && p->p_flag & P_TRACED); + proc_stop(p); + mi_switch(); } /* @@ -1069,7 +1067,7 @@ issignal(p) p->p_xstat = signum; if ((p->p_pptr->p_flag & P_NOCLDSTOP) == 0) psignal(p->p_pptr, SIGCHLD); - stop(p); + proc_stop(p); mi_switch(); break; } else if (prop & SA_IGNORE) { @@ -1114,8 +1112,8 @@ keep: * on the run queue. */ void -stop(p) - register struct proc *p; +proc_stop(p) + struct proc *p; { p->p_stat = SSTOP; |