commit 0b4fd921055175e9dda8c424f9252f4141507742
parent 09adcb09011d8cc1391b0f4553928fc9cfaf3970
Author: David du Colombier <0intro@gmail.com>
Date: Sun, 9 Dec 2012 11:24:30 +0100
auth/factotum: fix password prompt hang with secstore
R=rsc
http://codereview.appspot.com/6906057
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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);