This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Killing staprun/stapio cleanly from another process


Frank Ch. Eigler wrote:
Mike Mason <mmlnx@us.ibm.com> writes:

[...]  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. [...]

Try sending the signal to the process group (negative of staprun pid).

That works. Thanks!


If that doesn't work, then staprun should be changed to let it consume
signals.

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]