Mail Archives: djgpp-workers/1999/08/05/03:55:47
On Wed, 4 Aug 1999, DJ Delorie wrote:
> > Then how about changing `kill's behavior instead, so this case would
> > be easily detectable by an application? Right now, we simply return
> > non-zero and don't even set errno.
>
> This is a bug itself, then. For unknown pids (not self, not zero,
> whatever) we should return a proper error condition (no such
> proccess).
I would think that ENOSYS is better than ESRCH in this case, since we
really don't implement killing another process. ESRCH would be a lie if
they accidentally pass the pid of an existing program, like the parent of
the caller.
If you agree, I will make the change.
- Raw text -