From 2e1e2d91f86eb0f192827919c000b40a1b168ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= <tuexen@fh-muenster.de> Date: Thu, 1 Oct 2015 12:09:19 +0200 Subject: [PATCH] Close sockets instead of freeing the state in the signal handler. --- gtests/net/packetdrill/run.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtests/net/packetdrill/run.c b/gtests/net/packetdrill/run.c index 705adce0..b0d8902a 100644 --- a/gtests/net/packetdrill/run.c +++ b/gtests/net/packetdrill/run.c @@ -8,7 +8,7 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See thest * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License @@ -68,7 +68,7 @@ static struct state *state = NULL; void interrupt_handler(int signal_number) { if (state != NULL) - state_free(state); + close_all_sockets(state); die("interrupted"); } -- GitLab