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