Commits

David du Colombier committed 88d77af

auth/factotum: fix password prompt hang with secstore

R=rsc
http://codereview.appspot.com/6906057

  • Participants
  • Parent commits f5a2aae

Comments (0)

Files changed (1)

src/cmd/auth/factotum/main.c

 	if(argc != 0)
 		usage();
 
-	rfork(RFNOTEG);
-
 	if(trysecstore && havesecstore()){
 		while(secstorefetch() < 0){
 			rerrstr(err, sizeof err);
 			fprint(2, "Enter an empty password to quit.\n");
 		}
 	}
-	
+
+	rfork(RFNOTEG);
+
 	fsinit0();
 	threadpostmountsrv(&fs, service, mtpt, MBEFORE);
 	threadexits(nil);