mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
cifs: fix rfork() race with shard pid variable
This commit is contained in:
parent
ee2174eb6d
commit
e80c7eb50b
1 changed files with 2 additions and 1 deletions
|
@ -1325,10 +1325,11 @@ connected:
|
|||
if(Nshares == 0)
|
||||
fprint(2, "no available shares\n");
|
||||
|
||||
if((Keeppid = rfork(RFPROC|RFMEM|RFNOTEG|RFFDG|RFNAMEG)) == 0){
|
||||
if((i = rfork(RFPROC|RFMEM|RFNOTEG|RFFDG|RFNAMEG)) == 0){
|
||||
keepalive();
|
||||
exits(nil);
|
||||
}
|
||||
Keeppid = i;
|
||||
postmountsrv(&fs, svs, mtpt, MREPL|MCREATE);
|
||||
exits(nil);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue