diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-07-20 22:44:39 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-07-20 22:44:39 +0000 |
| commit | 4f18efe2206e3e5b81f9cf2e8f9a78a8e23949f7 (patch) | |
| tree | b3977ab217eb98d31ada5e60cadadb36d4541ba2 /sys/kern/sys_process.c | |
| parent | 9f977fb187f5112ac5f5b68109567af6a40f6ad1 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_process.c')
| -rw-r--r-- | sys/kern/sys_process.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index c8cf8c451d7c..54b24237918c 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -392,10 +392,8 @@ ptrace(struct thread *td, struct ptrace_args *uap) return (ESRCH); } } - if (p_cansee(td, p)) { - error = ESRCH; + if ((error = p_cansee(td, p)) != 0) goto fail; - } if ((error = p_candebug(td, p)) != 0) goto fail; |
