summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-12 17:54:14 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-12 17:54:14 +0200
commit02c3f0d648a00032b4cfc8d3f558d08c3fb2d5d9 (patch)
tree1e2301704f2ea5e655a63eaeb16cd90d32ef6619 /src
parent606f52e77d930f982bf9dd2c205228023330a93a (diff)
downloadfastd-02c3f0d648a00032b4cfc8d3f558d08c3fb2d5d9.tar
fastd-02c3f0d648a00032b4cfc8d3f558d08c3fb2d5d9.zip
Install signal handlers later so key generation can be interrupted
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c3
1 files changed, 2 insertions, 1 deletions
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) {