From 6d9007cdb2a542f285525747ee3fea1baedc0331 Mon Sep 17 00:00:00 2001 From: Pi Date: Tue, 19 Nov 2013 09:17:13 -0800 Subject: [PATCH] bail early when pier exists Because I'm tired of waiting for keygen to find out my pier already exists. --- v/loop.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/v/loop.c b/v/loop.c index f920fcb118..2271c1c624 100644 --- a/v/loop.c +++ b/v/loop.c @@ -1638,6 +1638,12 @@ _lo_boot(void) u2_noun pig; if ( 0 == u2_Host.ops_u.imp_c ) { + c3_c get_c[2049]; + snprintf(get_c, 2048, "%s/get", u2_Host.cpu_c); + if ( 0 == access(get_c, 0) ) { + uL(fprintf(uH, "pier: already built\n")); + exit(1); + } u2_noun ten = _lo_zen(u2A); uL(fprintf(uH, "generating 2048-bit RSA pair...\n"));