]> sourceware.org Git - systemtap.git/commit
PR19525: always use a SIGUSR2 handler in stapio
authorJosh Stone <jistone@redhat.com>
Wed, 27 Jan 2016 22:20:06 +0000 (14:20 -0800)
committerJosh Stone <jistone@redhat.com>
Wed, 27 Jan 2016 22:29:44 +0000 (14:29 -0800)
commit2b8c3974798b1d3fe0699fc4c56b18e51c65cc55
treee519f1c449967aa8f1515cea8f2b6e264762c3a9
parenta42447bf8fbe8a2a8b08ad17869b8bfb67896981
PR19525: always use a SIGUSR2 handler in stapio

It was conditionally ignored by commit 62d2a73ee995, to avoid confusing
error messages about file rotation when there's no output file.

But bulk-mode close_relayfs() still needs the signal to cause EINTR on
the waiting threads, so SIG_IGN is too much.  Now we just return from
the handler immediately if there's no output file to rotate.

Also add a SIGUSR2 test for the original error and with bulk mode.
staprun/relay.c
testsuite/systemtap.base/sigusr2.exp [new file with mode: 0644]
testsuite/systemtap.base/sigusr2.stp [new file with mode: 0644]
This page took 0.027628 seconds and 5 git commands to generate.