tauth/factotum: fix password prompt hang with secstore - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0b4fd921055175e9dda8c424f9252f4141507742
(DIR) parent 09adcb09011d8cc1391b0f4553928fc9cfaf3970
(HTM) 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:
M src/cmd/auth/factotum/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/src/cmd/auth/factotum/main.c b/src/cmd/auth/factotum/main.c
t@@ -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);
t@@ -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);