kernel: keep segment locked for data2txt
parent
367b4be219
commit
659943558f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue