Bug 11020

Summary: SIGUSR2 file switching doesn't work with busy script
Product: systemtap Reporter: Masami Hiramatsu <mhiramat>
Component: runtimeAssignee: Unassigned <systemtap>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 10907    
Attachments: [PATCH] fix to check file switching flag inside read-write loop too.

Description Masami Hiramatsu 2009-11-25 20:51:26 UTC
stapio doesn't handle SIGUSR2 if running script dumps so much data.

e.g.
$ stap -d hoge -F -e 'probe kernel.function("sys_*") {print("hoge")}'
$ killall -USR2 stapio
<switching logs correctly>
$ killall -USR2 stapio
<doesn't switch log anymore>

Because SIGUSR2 is checked only right after ppoll(), but not checked in
read-write inner loop.
Comment 1 Masami Hiramatsu 2009-12-03 16:10:07 UTC
Created attachment 4443 [details]
[PATCH] fix to check file switching flag inside read-write loop too.

This patch adds a check of file switching flag inside inner loop.
Comment 2 Masami Hiramatsu 2009-12-03 20:37:40 UTC
Committed as 5cd2f82