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: SystemTap for Android - patchset


Hi -

On Wed, Jul 06, 2016 at 10:05:23PM +0200, Alexander Lochmann wrote:
> [...]
> > % sh pidwrapper /path/to/this.pid staprun foo bar baz
> > 
> That would be a nice workaround. I went through the source code. The
> commandline option is used by stapio. Stapio creates the pidfile. If I
> send a SIGKILL (or was it a SIGTERM? what so ever) to staprun, stap and
> the module won't be shutdown properly. Hence, I have to send the signal
> to stapio.

Since staprun exec's stapio, the latter will also share the same pid.
So this wrapper would work, whichever process happens to be running at
the moment.  (Send SIGTERM or SIGINT for a clean shutdown.)


- FChE


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