kern: fix very old bug in syscall tracing
This commit is contained in:
parent
7ae04d282f
commit
8ea71b1c66
@ -323,13 +323,15 @@ syscall(Syscalls scallnr, Ureg* ureg)
|
||||
}
|
||||
if(up->syscallq != nil){
|
||||
qlock(&up->debug);
|
||||
if(up->syscallq != nil){
|
||||
if(up->syscallq != nil
|
||||
&& !waserror()){
|
||||
notedefer();
|
||||
if(!waserror()){
|
||||
qwrite(up->syscallq, str, jehanne_strlen(str));
|
||||
poperror();
|
||||
}
|
||||
noteallow();
|
||||
poperror();
|
||||
}
|
||||
qunlock(&up->debug);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user