Skip to content
Snippets Groups Projects
Commit 781133b7 authored by Cedric Roux's avatar Cedric Roux
Browse files

T: bugfix in multi

Check result of send_is_on and close connection to tracee on error.
parent 5b17b036
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment