John Darrington <[EMAIL PROTECTED]> writes:
> On Thu, May 29, 2008 at 04:58:04PM -0700, Ben Pfaff wrote:
> If it comes down to that, it would be much better, in my opinion,
> to compile a small C program to do this, e.g.
>
> #include <signal.h>
>
> int main(void)
> {
> kill(getppid(), SIGTERM);
> }
>
>
> That would kill the wrong process. It would send a signal to the shell
> from which the program is run; not the parent of that shell.
If invoked in the most ordinary way, yes, but you could use the
shell "exec" command to replace the shell by the C program.
--
Ben Pfaff
http://benpfaff.org
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev