trace-cmd listen: Do not clean up in signal handler

Doing a memmove in the signal handler is racy with the updates of the main
process. Especially if it does a realloc, and the memory moves. Do the clean
up from the main process instead checking for EINTR in errno.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed