This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Killing staprun/stapio cleanly from another process
- From: Mike Mason <mmlnx at us dot ibm dot com>
- To: Martin Hunt <hunt at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Mon, 17 Sep 2007 10:52:56 -0700
- Subject: Re: Killing staprun/stapio cleanly from another process
- References: <46E85B9A.5080505@us.ibm.com> <1189688067.4119.2.camel@dragon>
Martin Hunt wrote:
On Wed, 2007-09-12 at 14:35 -0700, Mike Mason wrote:
If I want to use staprun to run a pre-compiled script module,
then want to kill it cleanly via a signal from another process,
what's the best way to do that? I tried "kill -s SIGINT <staprun_pid>"
and it didn't work, although the same command against the stapio pid
does seem to work.
You should send signals to stapio.
So if I fork/exec staprun from a program, then want to kill staprun/stapio from that same program, how can I do it? I only have staprun's pid.
BTW, I'm asking this for the SystemTap GUI team. Before stapio was added, they could start/stop staprun using staprun's pid. Now that stapio is involved, that doesn't work anymore.
Thanks,
Mike
Martin