diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-09-16 16:08:38 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2009-09-16 16:08:38 -0400 |
commit | c3a32b01d74946d8ae4d79534aeb194f1c66c72a (patch) | |
tree | 797ef529ef7019d73de29d88d93ad04386f2d225 /loc2c-test.c | |
parent | bc7cd435fc98bb3af93b6dc09a2c1f5e3b0423d9 (diff) | |
download | systemtap-steved-c3a32b01d74946d8ae4d79534aeb194f1c66c72a.tar.gz systemtap-steved-c3a32b01d74946d8ae4d79534aeb194f1c66c72a.tar.xz systemtap-steved-c3a32b01d74946d8ae4d79534aeb194f1c66c72a.zip |
Signal-based file switching support for old relay
* runtime/staprun/relay_old.c (switch_oldoutfile): New function for file
switching.
(process_subbufs): Use switch_oldoutfile.
(reader_thread): Use ppoll() instead of poll() for receiving SIGUSR2
and switch output file when receiving a signal(SIGUSR2).
(switchfile_handler): Send SIGUSR2 signal to reader threads for file
switching.
(init_oldrelayfs): Assign switchfile_handler to SIGUSR2.
Diffstat (limited to 'loc2c-test.c')
0 files changed, 0 insertions, 0 deletions