From 0b4fd921055175e9dda8c424f9252f4141507742 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sun, 9 Dec 2012 11:24:30 +0100 Subject: auth/factotum: fix password prompt hang with secstore R=rsc http://codereview.appspot.com/6906057 --- src/cmd/auth/factotum/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/auth/factotum/main.c b/src/cmd/auth/factotum/main.c index 2cf39661..1f603ac7 100644 --- a/src/cmd/auth/factotum/main.c +++ b/src/cmd/auth/factotum/main.c @@ -70,8 +70,6 @@ threadmain(int argc, char *argv[]) if(argc != 0) usage(); - rfork(RFNOTEG); - if(trysecstore && havesecstore()){ while(secstorefetch() < 0){ rerrstr(err, sizeof err); @@ -81,7 +79,9 @@ threadmain(int argc, char *argv[]) fprint(2, "Enter an empty password to quit.\n"); } } - + + rfork(RFNOTEG); + fsinit0(); threadpostmountsrv(&fs, service, mtpt, MBEFORE); threadexits(nil); -- cgit v1.2.3