Subject: Re: remotely exitting a process
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 11/28/2005 17:37:51
In article <20051128130306.GJ1943@NetBSD.org>,
Emmanuel Dreyfus <firstname.lastname@example.org> wrote:
>Linux's exit_group system call is meant to exit a whole group of processes.
>In order to emulate it correctly, I must be able to cause a process to exit
>from another process.
>How could this be done correctly? I tried sending SIGKILL to the members
>of the program group, but that does not work very well, as it fires an
>unwanted SIGCHLD to the parent.
>Calling sys_exit(l, v, retval) within the context of a lwp different than
>l does not work. What alternative do I have?
If it does not need to exit immediately, you can set a flag in the process
struct and have it exit the next time it gets rescheduled.