kernel: keep segment locked for data2txt

front
cinap_lenrek 2012-01-09 21:33:22 +01:00
parent 367b4be219
commit 659943558f
1 changed files with 2 additions and 1 deletions

View File

@ -186,9 +186,10 @@ dupseg(Segment **seg, int segno, int share)
case SG_DATA: /* Copy on write plus demand load info */
if(segno == TSEG){
n = data2txt(s);
poperror();
qunlock(&s->lk);
return data2txt(s);
return n;
}
if(share)