Commit 781133b7 authored by Cedric Roux's avatar Cedric Roux

T: bugfix in multi

Check result of send_is_on and close connection to tracee on error.
parent 5b17b036
...@@ -372,7 +372,13 @@ tracer_error: ...@@ -372,7 +372,13 @@ tracer_error:
remove_tracer(&m, j); remove_tracer(&m, j);
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; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment