Subject: Re: process remote exit
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 06/27/2006 15:30:28
In article <20060627151137.GC8901@NetBSD.org>,
Emmanuel Dreyfus <manu@netbsd.org> wrote:
>Hi
>
>In order to properly emulate Linux's exit_group(), I need to remotely
>exit a process from another process.
>
>I do this by posting a SIGKILL, but the problem is that if a process is
>awaiting on the killed process, it will see the SIGKILL in the exit code.
>This is not what happens on Linux.
>
>To avoid the SIGKILL notification, I added a p_flag for when the process
>is being remotely killed. This is not very satisfying, as it introduce some
>code compat code in native kernel code. OTOH, it could be used for a native
>feature too.
>
>Here is the patch: http://ftp.espci.fr/shadow/manu/remoteexit.diff
I would just call the flag P_EXIT, remote means to me from a different
machine, and it looks ok.
christos