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.
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.
Committed as 5cd2f82