You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main problem is that we typically want to call pause(or stop which uses pause) from a signal handler, however in parallel libtrace this involves holding locks.
For a format like DPDK where trace_pstart takes some time and holds the lock the problem can easily be triggered.
I don't think blocking SIGTERM or SIGINT would be a good idea.
SIGINT it a useful way to end the program and it is cool when you output debug data at the end of a trace.
Maybe we use the signal to send a message? Failing that, maybe just set a global flag.
Activity
dancollins commentedon Nov 26, 2014
I don't think blocking SIGTERM or SIGINT would be a good idea.
SIGINT it a useful way to end the program and it is cool when you output debug data at the end of a trace.
Maybe we use the signal to send a message? Failing that, maybe just set a global flag.