devproc: fix syscalltrace read for ratrace
This commit is contained in:
parent
17136370d8
commit
a87c9cfc6c
1 changed files with 2 additions and 1 deletions
|
@ -1119,9 +1119,10 @@ procread(Chan *c, void *va, long n, vlong off)
|
||||||
goto statbufread;
|
goto statbufread;
|
||||||
|
|
||||||
case Qsyscall:
|
case Qsyscall:
|
||||||
n = 0;
|
|
||||||
if(p->syscalltrace != nil)
|
if(p->syscalltrace != nil)
|
||||||
n = readstr(offset, va, n, p->syscalltrace);
|
n = readstr(offset, va, n, p->syscalltrace);
|
||||||
|
else
|
||||||
|
n = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Qnote:
|
case Qnote:
|
||||||
|
|
Loading…
Reference in a new issue