Jeff Dike wrote: > > I would be tempted to #define SIGSYSCALL (SIGTRAP + 0x80) or something just > to make the +0x80 bit less magic-looking. O.K. I defined it in signal_user.h, hope it's OK there. Consequently the definition is used in arch/um/kernel/ptrace.c to replace the 0x80 at the call to ptrace_notify(). > > In the SIGTRAP case, you might as well inline do_sigtrap. One line functions > are pretty much a waste. Sorry, I tried to inline it, but it failed to compile. At the moment tracer.c contains functions without much knowledge about task structure only. Without including the specific headers, inlining cannot be used. So, attached you'll find the revised patches. Bodo