From 781133b77233260595d2b945d965c721c5dcb1cf Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Thu, 9 Aug 2018 10:18:38 +0200 Subject: [PATCH] T: bugfix in multi Check result of send_is_on and close connection to tracee on error. --- common/utils/T/tracer/multi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/utils/T/tracer/multi.c b/common/utils/T/tracer/multi.c index 7d3fd0f344..6a9de838c6 100644 --- a/common/utils/T/tracer/multi.c +++ b/common/utils/T/tracer/multi.c @@ -372,7 +372,13 @@ tracer_error: remove_tracer(&m, j); j--; } - if (is_on_changed && s != -1) send_is_on(s, number_of_events, is_on); + if (is_on_changed && s != -1) + if (send_is_on(s, number_of_events, is_on) == -1) { + clear_remote_config(); + shutdown(s, SHUT_RDWR); + close(s); + s = -1; + } } return 0;