Re: ptrace errors are misleading

From: Pavel Machek (
Date: Wed May 24 2000 - 08:12:07 EST


> On x86 Linux 2.2 and 2.3 ptrace sets errno to ESRCH ("no such
> process") when the process is not being traced or when it is not
> stopped (arch/i386/kernel/ptrace.c).
> Shouldn't it return EPERM instead?

EPERM seems bad, it is not permission issue. EINVAL might be better.

The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:11 EST