mbox series

[0/2] trace-cmd: Cleanups for --daemonize option

Message ID 20231017233503.2205514-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd: Cleanups for --daemonize option | expand

Message

Steven Rostedt Oct. 17, 2023, 11:20 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Just a few clean ups for the --daemonize option that I plan on committing
upstream soon. This is based on:

  https://lore.kernel.org/all/20230626091635.3002827-1-avidanborisov@gmail.com/

The first patch lets the daemon be killed with SIGTERM as well as with SIGINT,
as that's the default of "kill" without any option.

The second patch just renames a variable from "rc" to "ret" to be consistent
with the rest of the code.

Steven Rostedt (Google) (2):
  trace-cmd record: Use SIGTERM as well for --daemonize
  trace-cmd record: Cleanup - be consistent with return status variable

 tracecmd/trace-record.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)