From 02c3f0d648a00032b4cfc8d3f558d08c3fb2d5d9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 12 Aug 2013 17:54:14 +0200 Subject: Install signal handlers later so key generation can be interrupted --- src/fastd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index aa22cc0..ed47831 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -715,7 +715,6 @@ int main(int argc, char *argv[]) { fastd_random_bytes(&ctx, &ctx.randseed, sizeof(ctx.randseed), false); - init_signals(&ctx); init_pipes(&ctx); fastd_config_t conf; @@ -728,6 +727,8 @@ int main(int argc, char *argv[]) { exit(0); } + init_signals(&ctx); + conf.protocol_config = conf.protocol->init(&ctx); if (conf.show_key) { -- cgit v1.2.3