devproc: fix syscalltrace read for ratrace

front
cinap_lenrek 2020-03-05 20:46:01 +01:00
parent 17136370d8
commit a87c9cfc6c
1 changed files with 2 additions and 1 deletions

View File

@ -1119,9 +1119,10 @@ procread(Chan *c, void *va, long n, vlong off)
goto statbufread;
case Qsyscall:
n = 0;
if(p->syscalltrace != nil)
n = readstr(offset, va, n, p->syscalltrace);
else
n = 0;
break;
case Qnote: