[patch] get_scno should test TCB_INSYSCALL at the beginning

Jochen Eisinger jochen.eisinger at gmx.de
Thu Nov 27 08:04:06 UTC 2003


sorry for not double checking this earlier.

Yes, Michael is right, the patch (as I posted it in the first place)
should check for

>             if (tcp->flags & TCB_INSYSCALL)
>                         return 1;

Roland, could you please put the patch back in, just with the !() in the
if statement removed?

Btw, I'm also still quite convinced, the get_scno function should be
bail out immedially when the traced program is within a syscall.

best regards
-- jochen

More information about the Strace-devel mailing list