pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors on Solaris


From: Ben Pfaff
Subject: Re: Errors on Solaris
Date: Thu, 29 May 2008 21:20:01 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

John Darrington <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]