linux-yocto/tools/verification/rv/src
Gabriele Monaco 1160ccaf77 tools/rv: Stop gracefully also on SIGTERM
Currently the userspace RV tool starts a monitor and waits for the user
to press Ctrl-C (SIGINT) to terminate and stop the monitor.
This doesn't account for a scenario where a user starts RV in background
and simply kills it (SIGTERM unless the user specifies differently).
E.g.:
 # rv mon wip &
 # kill %

Would terminate RV without stopping the monitor and next RV executions
won't start correctly.

Register the signal handler used for SIGINT also to SIGTERM.

Cc: Nam Cao <namcao@linutronix.de>
Cc: Tomas Glozar <tglozar@redhat.com>
Cc: Juri Lelli <jlelli@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
Link: https://lore.kernel.org/20250723161240.194860-3-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2025-07-24 10:43:46 -04:00
..
Build tools/verification: Use tools/build makefiles on rv 2024-03-20 05:39:06 +01:00
in_kernel.c tools/rv: Do not skip idle in trace 2025-07-24 10:43:46 -04:00
rv.c tools/rv: Stop gracefully also on SIGTERM 2025-07-24 10:43:46 -04:00
trace.c tools/rv: Correct the grammatical errors in the comments 2024-10-04 15:07:24 -04:00
utils.c